from __future__ import annotations import sys from pathlib import Path LOCALIZER_DIR = Path(__file__).resolve().parent REPO_ROOT = LOCALIZER_DIR.parent def add_repo_paths() -> None: for path in (LOCALIZER_DIR, REPO_ROOT): path_str = str(path) if path_str not in sys.path: sys.path.insert(0, path_str)