mirror of
https://github.com/FAUSheppy/homelab_gamevault
synced 2025-12-07 07:21:37 +01:00
fix: execute game with in install dir
This commit is contained in:
@@ -35,7 +35,7 @@ def run_exe(path, synchronous=False):
|
|||||||
|
|
||||||
print("Executing:", path)
|
print("Executing:", path)
|
||||||
try:
|
try:
|
||||||
subprocess.Popen(path)
|
subprocess.Popen(path, cwd=os.path.dirname(path))
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
if "WinError 740" in str(e):
|
if "WinError 740" in str(e):
|
||||||
p = subprocess.Popen(["python", "adminrun.py", path],
|
p = subprocess.Popen(["python", "adminrun.py", path],
|
||||||
|
|||||||
Reference in New Issue
Block a user