Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Fix custom nodes not importing when path contains a dot.

comfyanonymousa26da20a7612
diff --git a/nodes.py b/nodes.py
index f63e8cb5e..8c1720c1a 100644
--- a/nodes.py
+++ b/nodes.py
@@ -2136,7 +2136,7 @@ def load_custom_node(module_path: str, ignore=set(), module_parent="custom_nodes
module_name = sp[0]
sys_module_name = module_name
elif os.path.isdir(module_path):
- sys_module_name = module_path
+ sys_module_name = module_path.replace(".", "_x_")
try:
logging.debug("Trying to load custom node {}".format(module_path))