mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-16 08:43:30 +08:00
Add log to debug custom nodes that hang when imported.
This commit is contained in:
parent
56b08f7b30
commit
207f045783
1
nodes.py
1
nodes.py
@ -1876,6 +1876,7 @@ def load_custom_node(module_path, ignore=set()):
|
||||
sp = os.path.splitext(module_path)
|
||||
module_name = sp[0]
|
||||
try:
|
||||
logging.debug("Trying to load custom node {}".format(module_path))
|
||||
if os.path.isfile(module_path):
|
||||
module_spec = importlib.util.spec_from_file_location(module_name, module_path)
|
||||
module_dir = os.path.split(module_path)[0]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user