Return the XDG cache directory, according to the XDG base directory spec: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
()
| 517 | |
| 518 | |
| 519 | def _get_xdg_cache_dir(): |
| 520 | """ |
| 521 | Return the XDG cache directory, according to the XDG base directory spec: |
| 522 | |
| 523 | https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html |
| 524 | """ |
| 525 | return os.environ.get('XDG_CACHE_HOME') or str(Path.home() / ".cache") |
| 526 | |
| 527 | |
| 528 | def _get_config_or_cache_dir(xdg_base_getter): |