Return the XDG configuration directory, according to the XDG base directory spec: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
()
| 507 | |
| 508 | |
| 509 | def _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 | |
| 519 | def _get_xdg_cache_dir(): |