lets get this party starteddddd (#1287)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
"""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"]
|
||||
|
||||
Reference in New Issue
Block a user