-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path__init__.py
More file actions
26 lines (17 loc) · 718 Bytes
/
Copy path__init__.py
File metadata and controls
26 lines (17 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import os
import sys
_ROOKIEUI_ROOT = os.path.dirname(os.path.abspath(__file__))
if _ROOKIEUI_ROOT not in sys.path:
sys.path.insert(0, _ROOKIEUI_ROOT)
from rookieui.nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
WEB_DIRECTORY = "./web"
def _bootstrap_rookieui_routes() -> None:
# CRITICAL: keep the custom node entrypoint thin; import-time failures here
# break the whole extension load path before PromptServer can warm up.
try:
from rookieui.services.route_bootstrap import register_routes_once
except Exception:
return
register_routes_once()
_bootstrap_rookieui_routes()
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]