mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-21 21:47:11 +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()):
|
def load_custom_node(module_path, ignore=set()):
|
||||||
module_name = os.path.basename(module_path)
|
module_name = os.path.basename(module_path)
|
||||||
|
# Drop '.py' file extension
|
||||||
if os.path.isfile(module_path):
|
if os.path.isfile(module_path):
|
||||||
sp = os.path.splitext(module_path)
|
module_name = os.path.splitext(module_name)[0]
|
||||||
module_name = sp[0]
|
|
||||||
try:
|
try:
|
||||||
logging.debug("Trying to load custom node {}".format(module_path))
|
logging.debug("Trying to load custom node {}".format(module_path))
|
||||||
if os.path.isfile(module_path):
|
if os.path.isfile(module_path):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user