bit-forecast-arena / src /ui /__init__.py
Bit-Trading-Company's picture
CI deploy local
8028640 verified
Raw
History Blame Contribute Delete
538 Bytes
"""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))