- Rename nodes/ directory to proportion_changer/ following ComfyUI conventions - Update __init__.py to use simple relative imports instead of importlib.util - Fix nodes.py imports to reference .proportion_changer instead of .nodes - Resolve ImportError caused by Python module vs package name collision - Follow established ComfyUI custom node patterns (similar to adv_control/) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
16 lines
809 B
Python
16 lines
809 B
Python
# Import nodes from modules
|
|
from .unianimate.nodes import NODE_CLASS_MAPPINGS as UNIANIMATE_NODE_CLASS_MAPPINGS
|
|
from .unianimate.nodes import NODE_DISPLAY_NAME_MAPPINGS as UNIANIMATE_NODE_DISPLAY_NAME_MAPPINGS
|
|
|
|
# Import from nodes.py (not the nodes/ directory) using simple relative import
|
|
from .nodes import NODE_CLASS_MAPPINGS as UTILITY_NODE_CLASS_MAPPINGS
|
|
from .nodes import NODE_DISPLAY_NAME_MAPPINGS as UTILITY_NODE_DISPLAY_NAME_MAPPINGS
|
|
|
|
# Combine node mappings
|
|
NODE_CLASS_MAPPINGS = {**UNIANIMATE_NODE_CLASS_MAPPINGS, **UTILITY_NODE_CLASS_MAPPINGS}
|
|
NODE_DISPLAY_NAME_MAPPINGS = {**UNIANIMATE_NODE_DISPLAY_NAME_MAPPINGS, **UTILITY_NODE_DISPLAY_NAME_MAPPINGS}
|
|
|
|
# Web directory for JavaScript files
|
|
WEB_DIRECTORY = "./web"
|
|
|
|
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"] |