24 lines
492 B
Python
24 lines
492 B
Python
"""Пути к seed-данным WESP (data/seed/)."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
|
|
_API_ROOT = Path(__file__).resolve().parents[4]
|
|
_REPO_ROOT = _API_ROOT.parent.parent
|
|
|
|
|
|
def seed_dir() -> Path:
|
|
local = _API_ROOT / "data" / "seed"
|
|
if local.exists():
|
|
return local
|
|
return _REPO_ROOT / "WESP_REL" / "data" / "seed"
|
|
|
|
|
|
def norms_dir() -> Path:
|
|
return seed_dir() / "norms"
|
|
|
|
|
|
def nutrients_dir() -> Path:
|
|
return seed_dir() / "nutrients"
|