""" Site customization for Python startup. Ensures the repository root is on sys.path so tests can reliably import the local package (e.g. `import missionledger.dsl`). This is a small, non-invasive shim that helps CI environments where the Python path may not include the project root by default. """ import sys import os try: # Path to the repository root (directory containing this file) _repo_root = os.path.dirname(os.path.abspath(__file__)) if _repo_root not in map(os.path.abspath, sys.path): sys.path.insert(0, _repo_root) except Exception: # Be conservative: do not fail startup if this ever goes wrong pass