Locate the main zccache binary (for daemon-backed ``fp`` subcommand).
()
| 317 | |
| 318 | |
| 319 | def _find_zccache() -> str: |
| 320 | """Locate the main zccache binary (for daemon-backed ``fp`` subcommand).""" |
| 321 | global _ZCCACHE_BIN |
| 322 | if _ZCCACHE_BIN is not None: |
| 323 | return _ZCCACHE_BIN |
| 324 | found = shutil.which("zccache") |
| 325 | if found is not None: |
| 326 | _ZCCACHE_BIN = found |
| 327 | return found or "" |
| 328 | |
| 329 | |
| 330 | def _find_zccache_fp() -> str: |