File size: 327 Bytes
97aa5af | 1 2 3 4 5 6 7 8 9 10 11 12 | """Repository-root resolution for portable paths."""
from pathlib import Path
# r3pm_net/paths.py -> parents[1] is the repository root
REPO_ROOT = Path(__file__).resolve().parents[1]
def repo_path(*parts: str) -> str:
"""Join path segments relative to the repository root."""
return str(REPO_ROOT.joinpath(*parts))
|