Merge pull request #27 from StableLlama/relative_paths
Change to use relative paths
This commit is contained in:
+9
-4
@@ -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
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user