File size: 538 Bytes
8028640
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""The Arena's rendering layer.

Importing this package puts the vendored `bit-ui` on the path, so every module
under it can `from bit_ui import ...` without repeating the dance. bit-ui
travels as a git submodule and is uploaded to the Space as ordinary files, so
there is nothing to install at boot.
"""

from __future__ import annotations

import sys
from pathlib import Path

_VENDOR = Path(__file__).resolve().parents[2] / "vendor" / "bit-ui"
if _VENDOR.exists() and str(_VENDOR) not in sys.path:
    sys.path.insert(0, str(_VENDOR))