mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-20 21:57:05 +08:00
fixup logic for getting extension module name in load_custom_node
This commit is contained in:
parent
a441bae96f
commit
bac089095a
5
nodes.py
5
nodes.py
@ -1887,8 +1887,9 @@ def _load_custom_node(ext_mod, ext_mod_name, ignore, ext_mod_dir=None):
|
|||||||
|
|
||||||
def load_custom_node(ext_mod_path, ignore=set()):
|
def load_custom_node(ext_mod_path, ignore=set()):
|
||||||
if os.path.isfile(ext_mod_path):
|
if os.path.isfile(ext_mod_path):
|
||||||
ext_mod_name, *_ = os.path.splitext(ext_mod_path)
|
ext_mod_name = NORMALIZE_MOD_NAME(os.path.splitext(ext_mod_path)[0])
|
||||||
ext_mod_name = NORMALIZE_MOD_NAME(ext_mod_name)
|
else:
|
||||||
|
ext_mod_name = NORMALIZE_MOD_NAME(os.path.basename(ext_mod_path))
|
||||||
|
|
||||||
if ext_mod_name in EXTENSION_MODULES_LOADED:
|
if ext_mod_name in EXTENSION_MODULES_LOADED:
|
||||||
logging.warning(f"Skip loading custom nodes from {ext_mod_path}. Module already loaded.")
|
logging.warning(f"Skip loading custom nodes from {ext_mod_path}. Module already loaded.")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user