From 6ce0f76fe020185aafed23b81054694d7cbc4565 Mon Sep 17 00:00:00 2001 From: Paweł Jastrzębski Date: Mon, 21 Oct 2019 13:44:49 +0200 Subject: Fixed KindleGen detection on macOS --- kcc.py | 3 ++- 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 Brew.', 'error') + self.addMessage('Install it using Brew: brew cask install kindle-c' + 'omic-creator', 'error') else: self.addMessage('Download it and place executable in /usr/local/bin directory.', 'error') -- cgit 1.4.1