"test/config_test/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "3394f2c399bf8248931eb7b9f559a8be52ad9a07"
Commit a3d0b56c authored by comfyanonymous's avatar comfyanonymous
Browse files

Fix for relative imports in custom nodes.

parent 137ae260
...@@ -759,7 +759,7 @@ def load_custom_nodes(): ...@@ -759,7 +759,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
module_name = "custom_node_module.{}".format(possible_module) module_name = possible_module
try: try:
if os.path.isfile(module_path): if os.path.isfile(module_path):
module_spec = importlib.util.spec_from_file_location(module_name, module_path) module_spec = importlib.util.spec_from_file_location(module_name, module_path)
......
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