about summary refs log tree commit diff
path: root/kcc.py
diff options
context:
space:
mode:
authorPaweł Jastrzębski <pawelj@iosphe.re>2014-11-24 18:44:03 +0100
committerPaweł Jastrzębski <pawelj@iosphe.re>2014-11-24 18:47:53 +0100
commitc9eb73ab90061a90df6a36b8177968f5343b75fc (patch)
treee5343319cf01d59c1a08df54bc450ef32dd996ab /kcc.py
parentUpdated UnRAR (diff)
downloadkcc-c9eb73ab90061a90df6a36b8177968f5343b75fc.tar.gz
kcc-c9eb73ab90061a90df6a36b8177968f5343b75fc.tar.bz2
kcc-c9eb73ab90061a90df6a36b8177968f5343b75fc.zip
OS X: Miscellaneous fixes (close #115)
Diffstat (limited to 'kcc.py')
-rwxr-xr-xkcc.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/kcc.py b/kcc.py
index c59f2ad..c957cca 100755
--- a/kcc.py
+++ b/kcc.py
@@ -74,11 +74,8 @@ from multiprocessing import freeze_support
 from kcc import KCC_gui
 
 # OS specific PATH variable workarounds
-if sys.platform.startswith('darwin'):
-    if 'RESOURCEPATH' in os.environ:
-        os.environ['PATH'] = os.environ['RESOURCEPATH'] + ':' + os.environ['PATH']
-    else:
-        os.environ['PATH'] = os.path.dirname(os.path.abspath(__file__)) + '/other/:' + os.environ['PATH']
+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']
 elif sys.platform.startswith('win'):
     if getattr(sys, 'frozen', False):
         os.chdir(os.path.dirname(os.path.abspath(sys.executable)))