From a5ad5273789280f14fd611b43c4833d6cf171394 Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Thu, 27 Feb 2020 14:40:53 +0100 Subject: [PATCH] fix again configuration paths on windows the executable for python might also be called pythonw.exe, -> adjust the guess Change-Id: Ie2e7adc6d55f82ad4243761645da0e8e6ec8cc40 Reviewed-on: https://forge.frm2.tum.de/review/c/sine2020/secop/playground/+/22549 Tested-by: JenkinsCodeReview Reviewed-by: Markus Zolliker --- secop/lib/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/secop/lib/__init__.py b/secop/lib/__init__.py index 670262f..c77573d 100644 --- a/secop/lib/__init__.py +++ b/secop/lib/__init__.py @@ -43,7 +43,7 @@ CONFIG = { 'confdir': os.path.join(repodir, 'cfg'), 'basedir': repodir, } -if path.splitext(sys.executable)[1] == ".exe" and os.path.basename(sys.executable) != 'python.exe': +if path.splitext(sys.executable)[1] == ".exe" and not os.path.basename(sys.executable).startswith('python'): CONFIG = { 'piddir': './', 'logdir': './log',