|
import sys |
|
import folder_paths |
|
|
|
if not 'saved_prompts' in folder_paths.folder_names_and_paths: |
|
folder_paths.folder_names_and_paths['saved_prompts'] = ([], set(['.txt'])) |
|
|
|
custom_nodes = folder_paths.get_folder_paths("custom_nodes") |
|
for dir in custom_nodes: |
|
if dir not in sys.path: |
|
print("Adding", dir, "to sys.path") |
|
sys.path.append(dir) |
|
|
|
from .modules.nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS |
|
|
|
WEB_DIRECTORY = "./web" |
|
|
|
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"] |
|
|