diff --git a/scripts/qmt_relogin/ui_act.py b/scripts/qmt_relogin/ui_act.py index 8a6da67..dd94c3c 100644 --- a/scripts/qmt_relogin/ui_act.py +++ b/scripts/qmt_relogin/ui_act.py @@ -85,8 +85,9 @@ for a in plan: if op == "launch": import subprocess cwd = a.get("cwd") or None - subprocess.Popen([a["exe"]], cwd=cwd) - print("LAUNCH %s" % a["exe"].encode("unicode_escape").decode("ascii")) + subprocess.Popen([a["exe"]] + list(a.get("args", [])), cwd=cwd) + print("LAUNCH %s %s" % (a["exe"].encode("unicode_escape").decode("ascii"), + " ".join(a.get("args", [])))) if op == "minimize": import ctypes user32 = ctypes.windll.user32