about summary refs log tree commit diff
path: root/kcc.py
diff options
context:
space:
mode:
authorPaweł Jastrzębski <pawelj@iosphe.re>2019-10-21 13:44:49 +0200
committerPaweł Jastrzębski <pawelj@iosphe.re>2019-10-21 13:44:49 +0200
commit6ce0f76fe020185aafed23b81054694d7cbc4565 (patch)
treee5de3f2f910a8c21e3359c2f99359457b8c09494 /kcc.py
parentNo longer modify header field 504 (diff)
downloadkcc-6ce0f76fe020185aafed23b81054694d7cbc4565.tar.gz
kcc-6ce0f76fe020185aafed23b81054694d7cbc4565.tar.bz2
kcc-6ce0f76fe020185aafed23b81054694d7cbc4565.zip
Fixed KindleGen detection on macOS
Diffstat (limited to 'kcc.py')
-rwxr-xr-xkcc.py3
1 files changed, 2 insertions, 1 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')