Browse Source

fix: cm-cli - crash

pull/605/head
Dr.Lt.Data 7 months ago
parent
commit
92d8ac4db2
  1. 3
      cm-cli.py
  2. 2
      glob/manager_core.py

3
cm-cli.py

@ -483,7 +483,8 @@ elif op == 'cli-only-mode':
pass
print(f"\ncli-only-mode: enabled\n")
elif sys.argv[2] == 'disable':
os.remove(cli_mode_flag)
if os.path.exists(cli_mode_flag):
os.remove(cli_mode_flag)
print(f"\ncli-only-mode: disabled\n")
else:
print(f"\ninvalid value for cli-only-mode: {sys.argv[2]}\n")

2
glob/manager_core.py

@ -21,7 +21,7 @@ sys.path.append(glob_path)
import cm_global
from manager_util import *
version = [2, 22]
version = [2, 22, 1]
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')
comfyui_manager_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))

Loading…
Cancel
Save