fix: execute game with in install dir

This commit is contained in:
Yannik Schmidt
2024-05-11 18:09:06 +02:00
parent d4ce1ab3f0
commit 3367f9de03

View File

@@ -35,7 +35,7 @@ def run_exe(path, synchronous=False):
print("Executing:", path)
try:
subprocess.Popen(path)
subprocess.Popen(path, cwd=os.path.dirname(path))
except OSError as e:
if "WinError 740" in str(e):
p = subprocess.Popen(["python", "adminrun.py", path],