From e372cdc4888705c742964ec3e10278c96bff2266 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Fri, 27 Mar 2026 19:41:11 +0100 Subject: [PATCH] fix: add plugin root to sys.path so prismaudio_core is importable ComfyUI does not add the custom node directory to sys.path automatically, so prismaudio_core (a package inside the plugin dir) was not found at runtime. Co-Authored-By: Claude Sonnet 4.6 --- __init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/__init__.py b/__init__.py index 99a5a88..c9d8310 100644 --- a/__init__.py +++ b/__init__.py @@ -1,6 +1,10 @@ """ ComfyUI-PrismAudio: Video-to-Audio and Text-to-Audio generation using PrismAudio (ICLR 2026). """ +import sys +import os +sys.path.insert(0, os.path.dirname(__file__)) + from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS __all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS"]