Files
ethanfel-ComfyUI-Agent-Bridge/src
ethanfelandClaude Opus 4.8 1a2ec7c07a fix: relative imports so ComfyUI can load the custom node
ComfyUI execs __init__.py as a package without the node dir on sys.path, so the
absolute 'from src...' imports raised ModuleNotFoundError: No module named
'src.nodes'. Switch internal modules to package-relative imports and import them
relatively in __init__ (with a sys.path fallback for standalone/test use, so no
generic 'src' leaks onto sys.path to collide with other custom nodes). Adds a
regression test that loads the package the way ComfyUI does.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-28 15:56:27 +02:00
..