From 183fd33f3fa435e28b4dd76547301a10036f336a Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sat, 12 Jun 2021 16:10:56 +0200 Subject: [PATCH] MultiMystery linux compatibility --- MultiMystery.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/MultiMystery.py b/MultiMystery.py index b6c1d43e..aefc260a 100644 --- a/MultiMystery.py +++ b/MultiMystery.py @@ -75,7 +75,7 @@ if __name__ == "__main__": if os.path.exists("ArchipelagoMystery.exe"): basemysterycommand = "ArchipelagoMystery.exe" # compiled windows elif os.path.exists("ArchipelagoMystery"): - basemysterycommand = "ArchipelagoMystery" # compiled linux + basemysterycommand = "./ArchipelagoMystery" # compiled linux else: basemysterycommand = f"py -{py_version} Mystery.py" # source @@ -207,14 +207,13 @@ if __name__ == "__main__": if not args.disable_autohost: if os.path.exists(os.path.join(output_path, multidataname)): if os.path.exists("ArchipelagoServer.exe"): - baseservercommand = "ArchipelagoServer.exe" # compiled windows + baseservercommand = ["ArchipelagoServer.exe"] # compiled windows elif os.path.exists("ArchipelagoServer"): - baseservercommand = "ArchipelagoServer" # compiled linux + baseservercommand = ["./ArchipelagoServer"] # compiled linux else: - baseservercommand = f"py -{py_version} MultiServer.py" # source + baseservercommand = ["py", f"-{py_version}", "MultiServer.py"] # source # don't have a mac to test that. If you try to run compiled on mac, good luck. - - subprocess.call(f"{baseservercommand} --multidata {os.path.join(output_path, multidataname)}") + subprocess.call(baseservercommand + ["--multidata", os.path.join(output_path, multidataname)]) except: import traceback