mirror of
https://github.com/FAUSheppy/homelab_gamevault
synced 2025-12-06 06:51:36 +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)
|
||||
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],
|
||||
|
||||
Reference in New Issue
Block a user