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

Function get_cachedir

lib/matplotlib/__init__.py:623–631  ·  view source on GitHub ↗

Return the string path of the cache directory. The procedure used to find the directory is the same as for `get_configdir`, except using ``$XDG_CACHE_HOME``/``$HOME/.cache`` instead on Linux. On Windows, uses ``%LOCALAPPDATA%\\matplotlib`` (same as config).

()

Source from the content-addressed store, hash-verified

621
622@_logged_cached('CACHEDIR=%s')
623def get_cachedir():
624 """
625 Return the string path of the cache directory.
626
627 The procedure used to find the directory is the same as for
628 `get_configdir`, except using ``$XDG_CACHE_HOME``/``$HOME/.cache`` instead
629 on Linux. On Windows, uses ``%LOCALAPPDATA%\\matplotlib`` (same as config).
630 """
631 return _get_config_or_cache_dir(_get_xdg_cache_dir)
632
633
634@_logged_cached('matplotlib data path: %s')

Callers

nothing calls this directly

Calls 1

_get_config_or_cache_dirFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…