"""Put the repository root on sys.path for scripts copied from upstream. Those modules optionally import ``_script_root`` before their other imports. This package only adjusts the import path. It does not calculate charts. It lives in a subdirectory so it does not consume a ``scripts/`` root slot. """ from __future__ import annotations import sys from pathlib import Path ROOT = Path(__file__).resolve().parents[2] root_text = str(ROOT) if root_text not in sys.path: sys.path.insert(0, root_text)