Get cache file path (without extension - shelve adds its own).
()
| 236 | |
| 237 | |
| 238 | def _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 | |
| 245 | def clear_import_graph_caches() -> None: |
no test coverage detected