about summary refs log tree commit diff
path: root/kcc.py
diff options
context:
space:
mode:
authorPaweł Jastrzębski <pawelj@iosphe.re>2015-01-04 18:59:12 +0100
committerPaweł Jastrzębski <pawelj@iosphe.re>2015-01-04 18:59:12 +0100
commit5c2c6ed825f2c8b35cedf7c612a2516bf1d6d91c (patch)
treed36db4780bb9eedd00e66cd1951e8dbce55da876 /kcc.py
parentMerge pull request #122 from ciromattia/dev (diff)
downloadkcc-5c2c6ed825f2c8b35cedf7c612a2516bf1d6d91c.tar.gz
kcc-5c2c6ed825f2c8b35cedf7c612a2516bf1d6d91c.tar.bz2
kcc-5c2c6ed825f2c8b35cedf7c612a2516bf1d6d91c.zip
Tweaked OSX hack
Diffstat (limited to '')
-rwxr-xr-xkcc.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/kcc.py b/kcc.py
index edd3151..34d6102 100755
--- a/kcc.py
+++ b/kcc.py
@@ -30,8 +30,11 @@ if sys.version_info[0] != 3:
 
 # OS specific PATH variable workarounds
 import os
-if sys.platform.startswith('darwin') and 'RESOURCEPATH' not in os.environ:
-    os.environ['PATH'] = os.path.dirname(os.path.abspath(__file__)) + '/other/:' + os.environ['PATH']
+if sys.platform.startswith('darwin'):
+    if 'RESOURCEPATH' not in os.environ:
+        os.environ['PATH'] = os.path.dirname(os.path.abspath(__file__)) + '/other/:' + os.environ['PATH']
+    else:
+        os.environ['PATH'] = './../Resources:/usr/local/bin:/usr/bin:/bin'
 elif sys.platform.startswith('win'):
     if getattr(sys, 'frozen', False):
         os.chdir(os.path.dirname(os.path.abspath(sys.executable)))