Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /xiaojiou176-open_sourceharbor /apps /runtime_paths.py
| from __future__ import annotations | |
| import os | |
| from functools import lru_cache | |
| from pathlib import Path | |
| def get_runtime_root() -> Path: | |
| explicit = os.getenv("SOURCE_HARBOR_RUNTIME_ROOT", "").strip() | |
| if explicit: | |
| return Path(explicit).expanduser().resolve(strict=False) | |
| return Path(__file__).resolve().parents[1] | |
| def get_runtime_cache_root() -> Path: | |
| explicit = os.getenv("SOURCE_HARBOR_CACHE_ROOT", "").strip() | |
| if explicit: | |
| return Path(explicit).expanduser().resolve(strict=False) | |
| return get_runtime_root() / ".runtime-cache" | |
| def get_runtime_config_root() -> Path: | |
| return get_runtime_root() / "config" | |
| def get_runtime_scripts_root() -> Path: | |
| return get_runtime_root() / "scripts" | |
Xet Storage Details
- Size:
- 823 Bytes
- Xet hash:
- 1aa26a87e626dd49bd6390e536ee7bd3613414455fcca14033f13c87cbfed8ac
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.