diff options
author | Paweł Jastrzębski <pawelj@iosphe.re> | 2019-10-21 13:44:49 +0200 |
---|---|---|
committer | Paweł Jastrzębski <pawelj@iosphe.re> | 2019-10-21 13:44:49 +0200 |
commit | 6ce0f76fe020185aafed23b81054694d7cbc4565 (patch) | |
tree | e5de3f2f910a8c21e3359c2f99359457b8c09494 | |
parent | No longer modify header field 504 (diff) | |
download | kcc-6ce0f76fe020185aafed23b81054694d7cbc4565.tar.gz kcc-6ce0f76fe020185aafed23b81054694d7cbc4565.tar.bz2 kcc-6ce0f76fe020185aafed23b81054694d7cbc4565.zip |
Fixed KindleGen detection on macOS
-rwxr-xr-x | kcc.py | 3 | ||||
-rw-r--r-- | kindlecomicconverter/KCC_gui.py | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/kcc.py b/kcc.py index b334561..9c4d983 100755 --- a/kcc.py +++ b/kcc.py @@ -28,7 +28,8 @@ import os if sys.platform.startswith('darwin'): if getattr(sys, 'frozen', False): os.environ['PATH'] = os.path.dirname(os.path.abspath(sys.executable)) + \ - '/../Resources:/usr/local/bin:/usr/bin:/bin' + '/../Resources:/Applications/Kindle Comic Creator/Kindle Comic Creator.app/Contents/' \ + 'MacOS:/usr/local/bin:/usr/bin:/bin' os.chdir(os.path.dirname(os.path.abspath(sys.executable)) + '/../Resources') os.system('defaults write com.kindlecomicconverter.KindleComicConverter ApplePersistenceIgnoreState YES') os.system('defaults write com.kindlecomicconverter.KindleComicConverter NSInitialToolTipDelay -int 1000') diff --git a/kindlecomicconverter/KCC_gui.py b/kindlecomicconverter/KCC_gui.py index 68fc44f..6020c7d 100644 --- a/kindlecomicconverter/KCC_gui.py +++ b/kindlecomicconverter/KCC_gui.py @@ -858,7 +858,8 @@ class KCCGUI(KCC_ui.Ui_mainWindow): if sys.platform.startswith('win'): self.addMessage('Download it and place EXE in KCC directory.', 'error') elif sys.platform.startswith('darwin'): - self.addMessage('Install it using <a href="http://brew.sh/">Brew</a>.', 'error') + self.addMessage('Install it using <a href="http://brew.sh/">Brew</a>: <i>brew cask install kindle-c' + 'omic-creator</i>', 'error') else: self.addMessage('Download it and place executable in /usr/local/bin directory.', 'error') |