pooch.os_cache¶
-
pooch.os_cache(project)[source]¶ Default cache location based on the operating system.
The folder locations are defined by the
appdirspackage. Usually, the locations will be following (see the appdirs documentation):Mac:
~/Library/Application Support/<project>Unix:
~/.local/share/<project>or the value of theXDG_DATA_HOMEenvironment variable, if defined.Windows:
C:\Users\<user>\AppData\Roaming\<project>\<project>
- Parameters
project (str) – The project name.
- Returns
cache_path (
pathlib.Path) – The default location for the data cache. User directories ('~') are not expanded.