mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-20 21:37:00 +08:00
Fix module name for comfy extra nodes
This commit is contained in:
parent
24b969d3da
commit
dee05c5126
4
nodes.py
4
nodes.py
@ -1889,9 +1889,9 @@ EXTENSION_WEB_DIRS = {}
|
||||
|
||||
def load_custom_node(module_path, ignore=set()):
|
||||
module_name = os.path.basename(module_path)
|
||||
# Drop '.py' file extension
|
||||
if os.path.isfile(module_path):
|
||||
sp = os.path.splitext(module_path)
|
||||
module_name = sp[0]
|
||||
module_name = os.path.splitext(module_name)[0]
|
||||
try:
|
||||
logging.debug("Trying to load custom node {}".format(module_path))
|
||||
if os.path.isfile(module_path):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user