move executable check into util.py

This commit is contained in:
Mike Fährmann
2023-02-28 23:10:23 +01:00
parent de2f35d068
commit 26d06e0bb2
4 changed files with 4 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ else:
]
if getattr(sys, "frozen", False):
if util.EXECUTABLE:
# look for config file in PyInstaller executable directory (#682)
_default_configs.append(os.path.join(
os.path.dirname(sys.executable),