fixed: crash related to deleted CNR node after installed

modified: convert cm-cli.sh to cm-cli command
This commit is contained in:
Dr.Lt.Data
2025-04-28 00:13:31 +09:00
parent d547a05106
commit cd49799bed
6 changed files with 43 additions and 24 deletions

View File

@@ -1,6 +1,5 @@
import os
import logging
from comfy.cli_args import args
def prestartup():
from . import prestartup_script # noqa: F401
@@ -8,6 +7,8 @@ def prestartup():
def start():
from comfy.cli_args import args
logging.info('[START] ComfyUI-Manager')
from .common import cm_global # noqa: F401
@@ -32,6 +33,7 @@ def should_be_disabled(fullpath:str) -> bool:
1. Disables the legacy ComfyUI-Manager.
2. The blocklist can be expanded later based on policies.
"""
from comfy.cli_args import args
if not args.disable_manager:
# In cases where installation is done via a zip archive, the directory name may not be comfyui-manager, and it may not contain a git repository.