Commit b67b6920 authored by Hacker 17082006's avatar Hacker 17082006
Browse files

Fix bug

parent 4b4eae71
...@@ -610,7 +610,7 @@ def load_custom_nodes(): ...@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment