Files
olivv-cs-ComfyUI-FunPack/__init__.py
T
digital-garbage d5effb0378 core: serve the app, with the module allowlist as the wall
Static serving routes through a pure resolve(), so the extension allowlist and
the traversal guard are tested without aiohttp. modules/ serves .js only: a
module cannot ship a stylesheet even if one is written.
2026-08-28 14:18:55 +03:00

22 lines
666 B
Python

"""ComfyUI entry point for FunPack v5.
Core mounts the app and the module loader. Nodes are announced by modules, never
listed here.
"""
from core import log
NODE_CLASS_MAPPINGS = {}
NODE_DISPLAY_NAME_MAPPINGS = {}
# ComfyUI loads everything under this directory into its OWN graph frontend.
# The Cutting Room app lives in app/ and must never be served from here.
WEB_DIRECTORY = "./web"
try:
from core import routes # noqa: F401 (registers routes on import)
except Exception as exc: # a broken route must not take ComfyUI down with it
log.failed("core.routes", exc)
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]