From dee05c5126c68a69d527832db82703ea8cd16872 Mon Sep 17 00:00:00 2001 From: huchenlei Date: Thu, 4 Jul 2024 10:11:47 -0400 Subject: [PATCH] Fix module name for comfy extra nodes --- nodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodes.py b/nodes.py index a0d2178f4..10b091a6f 100644 --- a/nodes.py +++ b/nodes.py @@ -1889,9 +1889,9 @@ EXTENSION_WEB_DIRS = {} def load_custom_node(module_path, ignore=set()): module_name = os.path.basename(module_path) + # Drop '.py' file extension if os.path.isfile(module_path): - sp = os.path.splitext(module_path) - module_name = sp[0] + module_name = os.path.splitext(module_name)[0] try: logging.debug("Trying to load custom node {}".format(module_path)) if os.path.isfile(module_path):