Files
DrJKL-ComfyUI-Anchors/__init__.py
T
DrJKL d09841a499 Initial __init__.py
No nodes
Copies over the "dist" js files
2023-11-26 14:00:46 -08:00

19 lines
497 B
Python

ANCHOR_VERSION = "0.0.0"
NODE_CLASS_MAPPINGS = {}
__all__ = ["NODE_CLASS_MAPPINGS"]
import os, shutil
import folder_paths
module_js_directory = os.path.join(os.path.dirname(os.path.realpath(__file__)), "dist")
application_root_directory = os.path.dirname(folder_paths.__file__)
extension_web_extensions_directory = os.path.join(
application_root_directory, "web", "extensions", "anchor"
)
shutil.copytree(
module_js_directory, extension_web_extensions_directory, dirs_exist_ok=True
)