Get the default windows cache dir.
(name: str)
| 33 | |
| 34 | |
| 35 | def _windows_cache_dir(name: str) -> Path: |
| 36 | """Get the default windows cache dir.""" |
| 37 | env_base = os.getenv("LOCALAPPDATA") or os.getenv("APPDATA") |
| 38 | base = Path(env_base) if env_base is not None else Path.home() / "AppData" / "Local" |
| 39 | return base / name / "Cache" |
| 40 | |
| 41 | |
| 42 | def _macos_cache_dir(name: str) -> Path: |
no outgoing calls