From 89c51e4b33dc30251b1aeb41fc120dec59aa84e8 Mon Sep 17 00:00:00 2001 From: GACLove Date: Tue, 15 Jul 2025 23:06:03 +0800 Subject: [PATCH] fix: import lib --- __init__.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index 39a8c6b..e2ba63a 100644 --- a/__init__.py +++ b/__init__.py @@ -1,3 +1,11 @@ -from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS +import os +import sys +from pathlib import Path + +current_path = Path(__file__).parent.absolute() +print("Current path set to:", current_path) +sys.path.insert(0, os.path.join(current_path, "lightx2v")) # Adjust the path as needed + +from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS # noqa: E402 __all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS"]