mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-18 18:33:30 +00:00
Fix bug
This commit is contained in:
parent
4b4eae7171
commit
b67b6920d1
2
nodes.py
2
nodes.py
@ -610,7 +610,7 @@ def load_custom_nodes():
|
|||||||
module_path = os.path.join(CUSTOM_NODE_PATH, possible_module)
|
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
|
if os.path.isfile(module_path) and os.path.splitext(module_path)[1] != ".py": continue
|
||||||
try:
|
try:
|
||||||
custom_nodes = import_module(possible_module, CUSTOM_NODE_PATH)
|
custom_nodes = import_module(os.path.join(possible_module, CUSTOM_NODE_PATH))
|
||||||
if getattr(custom_nodes, "NODE_CLASS_MAPPINGS") is not None:
|
if getattr(custom_nodes, "NODE_CLASS_MAPPINGS") is not None:
|
||||||
NODE_CLASS_MAPPINGS.update(custom_nodes.NODE_CLASS_MAPPINGS)
|
NODE_CLASS_MAPPINGS.update(custom_nodes.NODE_CLASS_MAPPINGS)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user