diff options
author | Paweł Jastrzębski <pawelj@iosphe.re> | 2015-01-04 18:59:12 +0100 |
---|---|---|
committer | Paweł Jastrzębski <pawelj@iosphe.re> | 2015-01-04 18:59:12 +0100 |
commit | 5c2c6ed825f2c8b35cedf7c612a2516bf1d6d91c (patch) | |
tree | d36db4780bb9eedd00e66cd1951e8dbce55da876 /kcc.py | |
parent | Merge pull request #122 from ciromattia/dev (diff) | |
download | kcc-5c2c6ed825f2c8b35cedf7c612a2516bf1d6d91c.tar.gz kcc-5c2c6ed825f2c8b35cedf7c612a2516bf1d6d91c.tar.bz2 kcc-5c2c6ed825f2c8b35cedf7c612a2516bf1d6d91c.zip |
Tweaked OSX hack
Diffstat (limited to '')
-rwxr-xr-x | kcc.py | 7 |
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))) |