Fix path python in OSx
This commit is contained in:
parent
a817511850
commit
45c5e84f30
|
@ -129,12 +129,15 @@ DESKTOP = os.environ.get('DESKTOP_SESSION', '')
|
|||
INFO_DEBUG = '{}\n\n{}\n\n{}'.format(sys.version, platform.platform(), '\n'.join(sys.path))
|
||||
|
||||
IS_WIN = OS == 'Windows'
|
||||
IS_MAC = OS == 'Darwin'
|
||||
|
||||
LOG_NAME = 'ZAZ'
|
||||
CLIPBOARD_FORMAT_TEXT = 'text/plain;charset=utf-16'
|
||||
|
||||
PYTHON = 'python'
|
||||
if IS_WIN:
|
||||
PYTHON = 'python.exe'
|
||||
|
||||
CALC = 'calc'
|
||||
WRITER = 'writer'
|
||||
|
||||
|
@ -4168,7 +4171,11 @@ def get_config_path(name='Work'):
|
|||
|
||||
def get_path_python():
|
||||
path = get_config_path('Module')
|
||||
return join(path, PYTHON)
|
||||
if IS_MAC:
|
||||
path = join(path, '..', 'Resources', PYTHON)
|
||||
else:
|
||||
path = join(path, PYTHON)
|
||||
return path
|
||||
|
||||
|
||||
# ~ Export ok
|
||||
|
|
Binary file not shown.
|
@ -129,12 +129,15 @@ DESKTOP = os.environ.get('DESKTOP_SESSION', '')
|
|||
INFO_DEBUG = '{}\n\n{}\n\n{}'.format(sys.version, platform.platform(), '\n'.join(sys.path))
|
||||
|
||||
IS_WIN = OS == 'Windows'
|
||||
IS_MAC = OS == 'Darwin'
|
||||
|
||||
LOG_NAME = 'ZAZ'
|
||||
CLIPBOARD_FORMAT_TEXT = 'text/plain;charset=utf-16'
|
||||
|
||||
PYTHON = 'python'
|
||||
if IS_WIN:
|
||||
PYTHON = 'python.exe'
|
||||
|
||||
CALC = 'calc'
|
||||
WRITER = 'writer'
|
||||
|
||||
|
@ -4168,7 +4171,11 @@ def get_config_path(name='Work'):
|
|||
|
||||
def get_path_python():
|
||||
path = get_config_path('Module')
|
||||
return join(path, PYTHON)
|
||||
if IS_MAC:
|
||||
path = join(path, '..', 'Resources', PYTHON)
|
||||
else:
|
||||
path = join(path, PYTHON)
|
||||
return path
|
||||
|
||||
|
||||
# ~ Export ok
|
||||
|
|
Loading…
Reference in New Issue