Spaces:
Running
Running
Download src/helpers/paths.py from sparklabuofu/MiniWeb-demo: direct link, hf CLI and curl.
- Browser
- Download file 410 Bytes
-
https://huggingface.co/spaces/sparklabuofu/MiniWeb-demo/resolve/main/src/helpers/paths.py
- Command line
-
hf download hf://spaces/sparklabuofu/MiniWeb-demo/src/helpers/paths.py
-
curl -L -o paths.py https://huggingface.co/spaces/sparklabuofu/MiniWeb-demo/resolve/main/src/helpers/paths.py
410 Bytes
| """The repository root (src/helpers/paths.py -> two levels up), for code that reads data/, models/, .env or the | |
| database: since the src/ layout (2026-10-08) a module's own location no longer says where the repository is.""" | |
| from pathlib import Path | |
| REPO_ROOT = Path(__file__).resolve().parents[2] | |
| SITES_DIR = REPO_ROOT / "src" / "miniweb" / "sites" # the 65 sites (<site>/site.json, routes.py, doc/) | |