Fix path python in OSx

This commit is contained in:
Mauricio Baeza 2020-03-09 21:36:33 -06:00
parent a817511850
commit 45c5e84f30
3 changed files with 16 additions and 2 deletions

View File

@ -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.

View File

@ -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