Fix custom nodes not importing when path contains a dot.

This commit is contained in:
comfyanonymous 2025-04-10 03:37:27 -04:00
parent e346d8584e
commit a26da20a76

View File

@ -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))