From 3f1add43e822c3bdd3bd84908fa6507237be3d8d Mon Sep 17 00:00:00 2001 From: darodi <4682830+darodi@users.noreply.github.com> Date: Thu, 2 Mar 2023 16:59:10 +0100 Subject: [PATCH] supporting Kindle Previewer --- kcc.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/kcc.py b/kcc.py index feb9e2e0..9422841d 100755 --- a/kcc.py +++ b/kcc.py @@ -28,16 +28,20 @@ if sys.platform.startswith('darwin'): if getattr(sys, 'frozen', False): os.environ['PATH'] = os.path.dirname(os.path.abspath(sys.executable)) + \ - '/../Resources:/Applications/Kindle Comic Creator/Kindle Comic Creator.app/Contents/' \ - 'MacOS:/usr/local/bin:/usr/bin:/bin' + '/../Resources:/Applications/Kindle Comic Creator/Kindle Comic Creator.app/Contents/MacOS:' \ + '/Applications/Kindle Previewer 3.app/Contents/lib/fc/bin/:/usr/local/bin:/usr/bin:/bin:' os.chdir(os.path.dirname(os.path.abspath(sys.executable)) + '/../Resources') else: os.chdir(os.path.dirname(os.path.abspath(__file__))) elif sys.platform.startswith('win'): if getattr(sys, 'frozen', False): + os.environ['PATH'] = '%LOCALAPPDATA%\\Amazon\\Kindle Previewer 3\\lib\\fc\\bin\\;' + \ + os.environ['PATH'] os.chdir(os.path.dirname(os.path.abspath(sys.executable))) else: - os.environ['PATH'] = os.path.dirname(os.path.abspath(__file__)) + '/other/windows/;' + os.environ['PATH'] + os.environ['PATH'] = os.path.dirname(os.path.abspath(__file__)) + '/other/windows/;' \ + '%LOCALAPPDATA%\\Amazon\\Kindle Previewer 3\\lib\\fc\\bin\\;' + \ + os.environ['PATH'] os.chdir(os.path.dirname(os.path.abspath(__file__))) # Load additional Sentry configuration # if getattr(sys, 'frozen', False):