24 lines
599 B
Python
24 lines
599 B
Python
from pathlib import Path
|
|
|
|
REPO_ROOT = Path(__file__).resolve().parents[2]
|
|
DATA = REPO_ROOT / "data"
|
|
STATIC = DATA / "static"
|
|
ARTIFACTS = DATA / "artifacts"
|
|
MATCHES_DB = DATA / "matches.sqlite"
|
|
|
|
|
|
def static_dir(set_number: int, patch: str) -> Path:
|
|
return STATIC / f"set{set_number}_{patch}"
|
|
|
|
|
|
def latest_static_pointer() -> Path:
|
|
return STATIC / "latest.json"
|
|
|
|
|
|
def artifact_dir(set_number: int, build_date: str) -> Path:
|
|
return ARTIFACTS / f"set{set_number}" / build_date
|
|
|
|
|
|
def latest_artifact_pointer(set_number: int) -> Path:
|
|
return ARTIFACTS / f"set{set_number}" / "latest.json"
|