"""Ensure the repository root is on sys.path (single insert location).""" import sys from pathlib import Path ROOT = Path(__file__).resolve().parent.parent _root = str(ROOT) if _root not in sys.path: sys.path.insert(0, _root)