fixed: cm-cli.py - missing 'utils' module if COMYUI_PatH is set

https://github.com/ltdrdata/ComfyUI-Manager/issues/1556
This commit is contained in:
Dr.Lt.Data
2025-02-17 07:43:35 +09:00
parent 3ddf414097
commit 2c3f44a3f8
3 changed files with 5 additions and 3 deletions

View File

@@ -31,7 +31,9 @@ if comfy_path is None:
except:
print("\n[bold yellow]WARN: The `COMFYUI_PATH` environment variable is not set. Assuming `custom_nodes/ComfyUI-Manager/../../` as the ComfyUI path.[/bold yellow]", file=sys.stderr)
comfy_path = os.path.abspath(os.path.join(manager_util.comfyui_manager_path, '..', '..'))
sys.path.append(comfy_path)
# This should be placed here
sys.path.append(comfy_path)
import utils.extra_config
import cm_global