|
|
import importlib |
|
|
import os |
|
|
|
|
|
node_list = [ |
|
|
"control_lora_create", |
|
|
"color_blend", |
|
|
"image_nodes" |
|
|
] |
|
|
|
|
|
NODE_CLASS_MAPPINGS = {} |
|
|
NODE_DISPLAY_NAME_MAPPINGS = {} |
|
|
|
|
|
for module_name in node_list: |
|
|
imported_module = importlib.import_module(".{}".format(module_name), __name__) |
|
|
|
|
|
NODE_CLASS_MAPPINGS = {**NODE_CLASS_MAPPINGS, **imported_module.NODE_CLASS_MAPPINGS} |
|
|
NODE_DISPLAY_NAME_MAPPINGS = {**NODE_DISPLAY_NAME_MAPPINGS, **imported_module.NODE_DISPLAY_NAME_MAPPINGS} |
|
|
|
|
|
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS'] |
|
|
|