mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-07-28 19:17:34 +08:00
Merge branch 'main' into improve/api-installed
This commit is contained in:
@@ -693,7 +693,7 @@ class UnifiedManager:
|
||||
res = {}
|
||||
|
||||
channel_url = normalize_channel(channel)
|
||||
if channel:
|
||||
if channel_url:
|
||||
if mode not in ['remote', 'local', 'cache']:
|
||||
print(f"[bold red]ERROR: Invalid mode is specified `--mode {mode}`[/bold red]", file=sys.stderr)
|
||||
return {}
|
||||
|
||||
@@ -1287,9 +1287,13 @@ def restart(self):
|
||||
sys_argv.remove('--windows-standalone-build')
|
||||
|
||||
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:
|
||||
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")
|
||||
|
||||
Reference in New Issue
Block a user