about summary refs log tree commit diff
path: root/kcc.py
diff options
context:
space:
mode:
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)))