MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _get_xdg_cache_dir

Function _get_xdg_cache_dir

lib/matplotlib/__init__.py:519–525  ·  view source on GitHub ↗

Return the XDG cache directory, according to the XDG base directory spec: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

()

Source from the content-addressed store, hash-verified

517
518
519def _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
528def _get_config_or_cache_dir(xdg_base_getter):

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
homeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…