spine.config.download.get_cache_dir
- spine.config.download.get_cache_dir() Path[source]
Get the directory for caching downloaded files.
By default, creates a ‘.cache/weights/’ directory in SPINE_BASEDIR or SPINE_PROD_BASEDIR (if running from spine-prod). This ensures downloads are cached centrally regardless of execution directory.
Can be overridden with the SPINE_CACHE_DIR environment variable.
- Returns:
Path to cache directory
- Return type:
Path