19 lines
632 B
Python
19 lines
632 B
Python
from .node import PromptLAB
|
|
|
|
NODE_CLASS_MAPPINGS = {"PromptLAB": PromptLAB}
|
|
NODE_DISPLAY_NAME_MAPPINGS = {"PromptLAB": "Prompt LAB"}
|
|
|
|
# ------------------------ Remove copied web extension -------------------------
|
|
from pathlib import Path
|
|
|
|
node_dir = Path(__file__).resolve().parent
|
|
comfy_dir = node_dir.parent.parent
|
|
destination_dir = comfy_dir / "web" / "extensions" / "tropfchen"
|
|
destination_path = destination_dir / "epQuickNodes.js"
|
|
|
|
if destination_path.exists():
|
|
destination_path.unlink()
|
|
|
|
# --------------------------- Install web extension ----------------------------
|
|
WEB_DIRECTORY = "./js"
|
|
__all__ = ["WEB_DIRECTORY"] |