Merge branch 'dr-support-pip-cm'

This commit is contained in:
Dr.Lt.Data
2025-08-26 19:45:36 +09:00
5 changed files with 42 additions and 0 deletions

View File

@@ -43,6 +43,9 @@ import folder_paths
import latent_preview
import node_helpers
if not args.disable_manager:
import comfyui_manager
def before_node_execution():
comfy.model_management.throw_exception_if_processing_interrupted()
@@ -2226,6 +2229,12 @@ async def init_external_custom_nodes():
if args.disable_all_custom_nodes and possible_module not in args.whitelist_custom_nodes:
logging.info(f"Skipping {possible_module} due to disable_all_custom_nodes and whitelist_custom_nodes")
continue
if not args.disable_manager:
if comfyui_manager.should_be_disabled(module_path):
logging.info(f"Blocked by policy: {module_path}")
continue
time_before = time.perf_counter()
success = await load_custom_node(module_path, base_node_names, module_parent="custom_nodes")
node_import_times.append((time.perf_counter() - time_before, module_path, success))