From b95d90a191bace4787c6cac9d4b81513a7ab610a Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Mon, 19 Dec 2022 08:36:24 +0100 Subject: [PATCH] Fixed python path in project settings #144 --- src/cpl_cli/configuration/project_settings.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/cpl_cli/configuration/project_settings.py b/src/cpl_cli/configuration/project_settings.py index acdc9963..a06435ad 100644 --- a/src/cpl_cli/configuration/project_settings.py +++ b/src/cpl_cli/configuration/project_settings.py @@ -130,9 +130,7 @@ class ProjectSettings(ConfigurationModelABC): path = sys.executable else: if not path.endswith('bin/python'): - if not path.endswith('/') and len(path) > 0: - path += '/' - path += 'bin/python' + path = os.path.join('bin/python') else: path = sys.executable