From a3d0b56c61cd76c544469d377838e67670a4d3fa Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Sun, 19 Feb 2023 12:00:05 -0500 Subject: [PATCH] Fix for relative imports in custom nodes. --- nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes.py b/nodes.py index f53531cc..03523ce1 100644 --- a/nodes.py +++ b/nodes.py @@ -759,7 +759,7 @@ def load_custom_nodes(): module_path = os.path.join(CUSTOM_NODE_PATH, possible_module) if os.path.isfile(module_path) and os.path.splitext(module_path)[1] != ".py": continue - module_name = "custom_node_module.{}".format(possible_module) + module_name = possible_module try: if os.path.isfile(module_path): module_spec = importlib.util.spec_from_file_location(module_name, module_path)