1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +08:00

Add __module__ to node info (#3936)

Use more explicit name 'python_module'

Parse abs ath

Move parse to nodes.py
This commit is contained in:
Chenlei Hu
2024-07-09 17:07:15 -04:00
committed by GitHub
parent f1a01c2c7e
commit 83f70a88fb
2 changed files with 27 additions and 3 deletions

View File

@@ -416,6 +416,7 @@ class PromptServer():
info['name'] = node_class
info['display_name'] = nodes.NODE_DISPLAY_NAME_MAPPINGS[node_class] if node_class in nodes.NODE_DISPLAY_NAME_MAPPINGS.keys() else node_class
info['description'] = obj_class.DESCRIPTION if hasattr(obj_class,'DESCRIPTION') else ''
info['python_module'] = getattr(obj_class, "RELATIVE_PYTHON_MODULE", "nodes")
info['category'] = 'sd'
if hasattr(obj_class, 'OUTPUT_NODE') and obj_class.OUTPUT_NODE == True:
info['output_node'] = True