25 lines
1.1 KiB
Python
25 lines
1.1 KiB
Python
# __init__.py inside ComfyUI/custom_nodes/MyStandaloneSetGetNodes/
|
|
|
|
# Optional: Import folder_paths if you need it for Python nodes later,
|
|
# but it's not strictly required just for loading JS.
|
|
# import folder_paths
|
|
|
|
# Since these are pure JavaScript nodes, we don't have Python node classes to map.
|
|
# If you were adding Python nodes as well, you would define them here.
|
|
NODE_CLASS_MAPPINGS = {}
|
|
|
|
# Similarly, no Python nodes means no display names to map here.
|
|
NODE_DISPLAY_NAME_MAPPINGS = {}
|
|
|
|
# This is the crucial part for JavaScript nodes.
|
|
# It tells ComfyUI to make the 'web' directory accessible to the frontend.
|
|
# ComfyUI will automatically look for JS files within this directory (and its subdirectories).
|
|
WEB_DIRECTORY = "./web" # Tells ComfyUI to serve files from the 'web' folder
|
|
|
|
# Optional: Standard Python practice to define what the module exports.
|
|
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS', 'WEB_DIRECTORY']
|
|
|
|
print("------------------------------------------")
|
|
print("Loaded Standalone Set/Get Nodes")
|
|
print("------------------------------------------")
|