File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 11"""Top-level package for basic_data_handling."""
2- import os , sys
3- sys .path .append (os .path .dirname (os .path .realpath (__file__ )))
42
53__all__ = [
64 "NODE_CLASS_MAPPINGS" ,
75 "NODE_DISPLAY_NAME_MAPPINGS" ,
86 "WEB_DIRECTORY" ,
97]
108
11- from src .basic_data_handling import NODE_CLASS_MAPPINGS
12- from src .basic_data_handling import NODE_DISPLAY_NAME_MAPPINGS
9+ try :
10+ # For ComfyUI
11+ from .src .basic_data_handling import NODE_CLASS_MAPPINGS
12+ from .src .basic_data_handling import NODE_DISPLAY_NAME_MAPPINGS
13+ except ImportError :
14+ # For running tests
15+ from src .basic_data_handling import NODE_CLASS_MAPPINGS
16+ from src .basic_data_handling import NODE_DISPLAY_NAME_MAPPINGS
17+
1318
1419WEB_DIRECTORY = "./web"
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " basic_data_handling"
7- version = " 0.5 .0"
7+ version = " 0.6 .0"
88description = """ Basic Python functions for manipulating data that every programmer is used to, lightweight with no additional dependencies.
99
1010Supported data types:
You can’t perform that action at this time.
0 commit comments