Download r3pm_net/paths.py from YasiiKB/R3PM-Net: direct link, hf CLI and curl.
- Browser
- Download file 327 Bytes
-
https://huggingface.co/YasiiKB/R3PM-Net/resolve/main/r3pm_net/paths.py
- Command line
-
hf download hf://YasiiKB/R3PM-Net/r3pm_net/paths.py
-
curl -L -o paths.py https://huggingface.co/YasiiKB/R3PM-Net/resolve/main/r3pm_net/paths.py
327 Bytes
| """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)) | |