resolve_cache_dir#

scikitplot.cython.resolve_cache_dir(cache_dir)[source]#

Resolve and create the cache directory.

Parameters:
cache_dirstr or pathlib.Path or None

Requested cache dir. If None, use environment override or a default platform cache location.

Returns:
pathlib.Path

Resolved cache directory root (created if needed).

Raises:
OSError

If directory creation fails.

Parameters:

cache_dir (str | Path | None)

Return type:

Path

Notes

Environment override (if set) takes precedence: SCIKITPLOT_CYTHON_CACHE_DIR.