23 lines
705 B
Python
23 lines
705 B
Python
from .wildcard import *
|
|
|
|
try:
|
|
import os, shutil
|
|
import folder_paths
|
|
|
|
module_js_directory = os.path.join(
|
|
os.path.dirname(os.path.realpath(__file__)), "js"
|
|
)
|
|
application_root_directory = os.path.dirname(folder_paths.__file__)
|
|
application_web_extensions_directory = os.path.join(
|
|
application_root_directory, "web", "extensions", "vanilla.simple.wildcard"
|
|
)
|
|
shutil.copytree(
|
|
module_js_directory, application_web_extensions_directory, dirs_exist_ok=True
|
|
)
|
|
except:
|
|
pass
|
|
|
|
NODE_CLASS_MAPPINGS = {"SimpleWildcard": Wildcard}
|
|
NODE_DISPLAY_NAME_MAPPINGS = {"SimpleWildcard": "Wildcard"}
|
|
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS"]
|