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