from .nodes import YARS, YARSAdv NODE_CLASS_MAPPINGS = {"YARS": YARS, "YARSAdv": YARSAdv} NODE_DISPLAY_NAME_MAPPINGS = { "YARS": "yaResolution Selector", "YARSAdv": "yaResolution Selector (Advanced)", } # ------------------------ 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 / "yarsQuickNodes.js" if destination_path.exists(): destination_path.unlink() # --------------------------- Install web extension ---------------------------- WEB_DIRECTORY = "./js" __all__ = ["WEB_DIRECTORY"]