acidbase.pkg_cache_dir

acidbase.pkg_cache_dir(package: str = 'acidbase', *, xdg: bool = True) str

Return (and create) a package-specific cache directory.

Follows the XDG Base Directory Specification by default.

Parameters:
  • package (str) – Subdirectory name to create under the cache root.

  • xdg (bool) – Use $XDG_CACHE_HOME (default True).

Returns:

Absolute path to the created cache directory.

Return type:

str