gpsea.config module
- gpsea.config.CACHE_ENV = 'GPSEA_CACHEDIR'
The name of the environment variable consulted by GPSEA to set the cache directory.
- gpsea.config.DEFAULT_CACHE_PATH = PosixPath('.gpsea_cache')
Default path to GPSEA cache directory.
- gpsea.config.get_cache_dir_path(cache: str | Path | None = None) Path [source]
Get path to the default cache directory.
First try to use cache argument. If cache is None, then use the GPSEA_CACHE environment variable, if set. Last, fall back to default cache path (.gpsea_cache in the current working directory).
Note: the cache directory is not created if it does not exist.
- Path cache:
a str or a
Path
to fallback cache or None if the default cache folder should be used.