Datasets:
File size: 338 Bytes
780ecbf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 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)
|