mirror of
https://git.datalinker.icu/ltdrdata/ComfyUI-Manager
synced 2025-12-15 09:04:52 +08:00
print command line args for restart
This commit is contained in:
parent
3075764402
commit
fd5c120d36
@ -1286,9 +1286,13 @@ def restart(self):
|
|||||||
sys_argv.remove('--windows-standalone-build')
|
sys_argv.remove('--windows-standalone-build')
|
||||||
|
|
||||||
if sys.platform.startswith('win32'):
|
if sys.platform.startswith('win32'):
|
||||||
return os.execv(sys.executable, ['"' + sys.executable + '"', '"' + sys_argv[0] + '"'] + sys_argv[1:])
|
cmds = ['"' + sys.executable + '"', '"' + sys_argv[0] + '"'] + sys_argv[1:]
|
||||||
else:
|
else:
|
||||||
return os.execv(sys.executable, [sys.executable] + sys_argv)
|
cmds = [sys.executable] + sys_argv
|
||||||
|
|
||||||
|
print(f"Command: {cmds}", flush=True)
|
||||||
|
|
||||||
|
return os.execv(sys.executable, cmds)
|
||||||
|
|
||||||
|
|
||||||
@routes.post("/manager/component/save")
|
@routes.post("/manager/component/save")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user