From 685f22330a2949237f6115ad0a9a40a75521f299 Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Fri, 7 Feb 2020 14:07:26 +0100 Subject: [PATCH] fix configured path on windows exclude python.exe from special rule Change-Id: Ia7dfe17ffb3a44dcb642d7a750c92865d7a1c6c3 Reviewed-on: https://forge.frm2.tum.de/review/c/sine2020/secop/playground/+/22435 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 a02ec9e..670262f 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": +if path.splitext(sys.executable)[1] == ".exe" and os.path.basename(sys.executable) != 'python.exe': CONFIG = { 'piddir': './', 'logdir': './log',