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

Function _get_xdg_config_dir

lib/matplotlib/__init__.py:509–516  ·  view source on GitHub ↗

Return the XDG configuration 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

507
508
509def _get_xdg_config_dir():
510 """
511 Return the XDG configuration directory, according to the XDG base
512 directory spec:
513
514 https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
515 """
516 return os.environ.get('XDG_CONFIG_HOME') or str(Path.home() / ".config")
517
518
519def _get_xdg_cache_dir():

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…