mirror of
https://github.com/ciromattia/kcc
synced 2025-12-15 10:46:40 +00:00
Tweaked OSX hack
This commit is contained in:
7
kcc.py
7
kcc.py
@@ -30,8 +30,11 @@ if sys.version_info[0] != 3:
|
|||||||
|
|
||||||
# OS specific PATH variable workarounds
|
# OS specific PATH variable workarounds
|
||||||
import os
|
import os
|
||||||
if sys.platform.startswith('darwin') and 'RESOURCEPATH' not in os.environ:
|
if sys.platform.startswith('darwin'):
|
||||||
os.environ['PATH'] = os.path.dirname(os.path.abspath(__file__)) + '/other/:' + os.environ['PATH']
|
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'):
|
elif sys.platform.startswith('win'):
|
||||||
if getattr(sys, 'frozen', False):
|
if getattr(sys, 'frozen', False):
|
||||||
os.chdir(os.path.dirname(os.path.abspath(sys.executable)))
|
os.chdir(os.path.dirname(os.path.abspath(sys.executable)))
|
||||||
|
|||||||
Reference in New Issue
Block a user