Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
"""Top-level package for basic_data_handling."""
import os, sys
sys.path.append(os.path.dirname(os.path.realpath(__file__)))

__all__ = [
"NODE_CLASS_MAPPINGS",
"NODE_DISPLAY_NAME_MAPPINGS",
"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"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down