From 89bb61fb0543d589c7a514a5ae942c7c5e780e73 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Sat, 12 Apr 2025 21:24:29 +0900 Subject: [PATCH] fixed: don't disable legacy ComfyUI-Manager unless --disable-comfyui is set --- comfyui_manager/__init__.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/comfyui_manager/__init__.py b/comfyui_manager/__init__.py index 386bd2eb..01089fdd 100644 --- a/comfyui_manager/__init__.py +++ b/comfyui_manager/__init__.py @@ -26,10 +26,11 @@ def should_be_disabled(fullpath:str) -> bool: 2. The blocklist can be expanded later based on policies. """ - # 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. - # It is assumed that any installed legacy ComfyUI-Manager will have at least 'comfyui-manager' in its directory name. - dir_name = os.path.basename(fullpath).lower() - if 'comfyui-manager' in dir_name: - return True - else: - return False + 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. + # It is assumed that any installed legacy ComfyUI-Manager will have at least 'comfyui-manager' in its directory name. + dir_name = os.path.basename(fullpath).lower() + if 'comfyui-manager' in dir_name: + return True + + return False