Files
katsut-ComfyUI-AlphaVAE/__init__.py

15 lines
535 B
Python

import importlib.util
import os
# Load nodes.py directly to avoid name collision with ComfyUI's own nodes module
_nodes_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "nodes.py")
_spec = importlib.util.spec_from_file_location("comfyui_alphavae_nodes", _nodes_path)
_mod = importlib.util.module_from_spec(_spec)
_spec.loader.exec_module(_mod)
NODE_CLASS_MAPPINGS = _mod.NODE_CLASS_MAPPINGS
NODE_DISPLAY_NAME_MAPPINGS = _mod.NODE_DISPLAY_NAME_MAPPINGS
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS"]