From b779349b55e79aff81a98b752f5cb486c71812db Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Mon, 10 Mar 2025 06:30:17 -0400 Subject: [PATCH] Temporarily revert fix to give time for people to update their nodes. --- nodes.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/nodes.py b/nodes.py index 4608a0d36..bbf49915c 100644 --- a/nodes.py +++ b/nodes.py @@ -2129,14 +2129,10 @@ def get_module_name(module_path: str) -> str: def load_custom_node(module_path: str, ignore=set(), module_parent="custom_nodes") -> bool: + module_name = os.path.basename(module_path) if os.path.isfile(module_path): sp = os.path.splitext(module_path) module_name = sp[0] - elif os.path.isdir(module_path): - module_name = module_path - if module_path.endswith("comfyui-manager"): #TODO: remove this eventually - module_name = get_module_name(module_path) - try: logging.debug("Trying to load custom node {}".format(module_path)) if os.path.isfile(module_path):