Files
TSSBOT/BOT/__init__.py
T
2026-05-30 08:45:32 -07:00

16 lines
505 B
Python

"""TSSBOT BOT package bootstrap.
Puts the sibling ``BOTS/SHARED`` directory on ``sys.path`` (mirroring
SREBOT/BOT/__init__.py) so shared modules like ``shared_store`` and
``data_parser`` import by bare name from anywhere that imports ``BOT.*``.
``SHARED_DIR`` is re-exported for asset-path use.
"""
import sys
from pathlib import Path
SHARED_DIR: Path = Path(__file__).resolve().parents[2] / "SHARED"
if str(SHARED_DIR) not in sys.path:
sys.path.insert(0, str(SHARED_DIR))
__all__ = ["SHARED_DIR"]