diff options
Diffstat (limited to 'kcc.py')
-rwxr-xr-x | kcc.py | 7 |
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))) |