MCPcopy Index your code
hub / github.com/RustPython/RustPython / _get_cache_path

Function _get_cache_path

scripts/update_lib/deps.py:238–242  ·  view source on GitHub ↗

Get cache file path (without extension - shelve adds its own).

()

Source from the content-addressed store, hash-verified

236
237
238def _get_cache_path() -> str:
239 """Get cache file path (without extension - shelve adds its own)."""
240 cache_dir = pathlib.Path(__file__).parent / ".cache"
241 cache_dir.mkdir(parents=True, exist_ok=True)
242 return str(cache_dir / "import_graph_cache")
243
244
245def clear_import_graph_caches() -> None:

Callers 2

_build_test_import_graphFunction · 0.85
_build_lib_import_graphFunction · 0.85

Calls 2

strFunction · 0.85
mkdirMethod · 0.45

Tested by

no test coverage detected