about summary refs log tree commit diff
path: root/kcc.py
diff options
context:
space:
mode:
authorPaweł Jastrzębski <pawelj@iosphe.re>2019-03-07 14:59:04 +0100
committerPaweł Jastrzębski <pawelj@iosphe.re>2019-03-07 16:24:41 +0100
commita6f9e8425128d5a22143b305c1b933443ec5b46a (patch)
tree5e4b10f4eb3ceef427b0d6a77197cc7743d60dcc /kcc.py
parentTweaks for Windows binary (diff)
downloadkcc-a6f9e8425128d5a22143b305c1b933443ec5b46a.tar.gz
kcc-a6f9e8425128d5a22143b305c1b933443ec5b46a.tar.bz2
kcc-a6f9e8425128d5a22143b305c1b933443ec5b46a.zip
Tweaks for OSX binary
Diffstat (limited to 'kcc.py')
-rwxr-xr-xkcc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/kcc.py b/kcc.py
index b05e8c1..61a9118 100755
--- a/kcc.py
+++ b/kcc.py
@@ -29,6 +29,7 @@ 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'
+        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')
     else: