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 <bjoern_pedersen@frm2.tum.de>
Reviewed-by: Markus Zolliker <markus.zolliker@psi.ch>
This commit is contained in:
2020-02-27 14:40:53 +01:00
parent 4bb11e249d
commit a5ad527378

View File

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