Get current cache directory (or file if id is given).
(options: Options)
| 1870 | |
| 1871 | |
| 1872 | def _cache_dir_prefix(options: Options) -> str: |
| 1873 | """Get current cache directory (or file if id is given).""" |
| 1874 | if options.bazel: |
| 1875 | # This is needed so the cache map works. |
| 1876 | return os.curdir |
| 1877 | cache_dir = options.cache_dir |
| 1878 | pyversion = options.python_version |
| 1879 | base = os_path_join(cache_dir, "%d.%d" % pyversion) |
| 1880 | return base |
| 1881 | |
| 1882 | |
| 1883 | def add_catch_all_gitignore(target_dir: str) -> None: |
no test coverage detected
searching dependent graphs…