Quarry / harness /localizer_path.py
jbellis-brokk's picture
Publish Quarry v1
780ecbf verified
Raw
History Blame Contribute Delete
338 Bytes
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)