Files
ericmey-comfyui-immich/__init__.py
T
Eric MeyandClaude Opus 4.6 7eddbca7d9 fix: use try/except import for ComfyUI and pytest compatibility
ComfyUI loads custom nodes as packages (relative import needed),
pytest runs at top level (absolute import needed). Handle both.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 23:20:12 -04:00

15 lines
338 B
Python

try:
from .immich_nodes.save_to_immich import SaveToImmich
except ImportError:
from immich_nodes.save_to_immich import SaveToImmich
NODE_CLASS_MAPPINGS = {
"SaveToImmich": SaveToImmich,
}
NODE_DISPLAY_NAME_MAPPINGS = {
"SaveToImmich": "Save to Immich",
}
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS"]