"""Gitignored cache directory for the Jev intent research. The 09-19 run stored rows on a Windows path. This machine uses the repo `.cache/jev_intent/` directory, which is already gitignored. Set `JEV_INTENT_CACHE` to point at an existing cache without writing it into the repository. """ from __future__ import annotations import os from pathlib import Path ROOT = Path(__file__).resolve().parents[2] WINDOWS_CACHE = Path(r"G:\Ferti\Jyotisha\.cache\jev_intent") def cache_dir() -> Path: override = os.environ.get("JEV_INTENT_CACHE") if override: return Path(override) local = ROOT / ".cache" / "jev_intent" if WINDOWS_CACHE.is_dir() and not local.exists(): return WINDOWS_CACHE return local