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 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kcc.py') 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') -- cgit 1.4.1