Merge pull request #27 from StableLlama/relative_paths

Change to use relative paths
This commit is contained in:
StableLlama
2025-08-31 21:27:08 +02:00
committed by GitHub
2 changed files with 10 additions and 5 deletions
+9 -4
View File
@@ -1,6 +1,4 @@
"""Top-level package for basic_data_handling."""
import os, sys
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
__all__ = [
"NODE_CLASS_MAPPINGS",
@@ -8,7 +6,14 @@ __all__ = [
"WEB_DIRECTORY",
]
from src.basic_data_handling import NODE_CLASS_MAPPINGS
from src.basic_data_handling import NODE_DISPLAY_NAME_MAPPINGS
try:
# For ComfyUI
from .src.basic_data_handling import NODE_CLASS_MAPPINGS
from .src.basic_data_handling import NODE_DISPLAY_NAME_MAPPINGS
except ImportError:
# For running tests
from src.basic_data_handling import NODE_CLASS_MAPPINGS
from src.basic_data_handling import NODE_DISPLAY_NAME_MAPPINGS
WEB_DIRECTORY = "./web"
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "basic_data_handling"
version = "0.5.0"
version = "0.6.0"
description = """Basic Python functions for manipulating data that every programmer is used to, lightweight with no additional dependencies.
Supported data types: