"""SREBOT bot package. Single source of truth for the BOTS/SHARED bootstrap. Importing this package (which happens automatically for any `from BOT.X import ...` or `import BOT.X`) puts the sibling `BOTS/SHARED/` directory on sys.path, so submodules can simply `from data_parser import ...` etc. `SHARED_DIR` is also re-exported so consumers can compute asset paths (MAPS, ICONS, FONTS, vromfs) without re-deriving the location. """ 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"]