MCPcopy Create free account
hub / github.com/cocoindex-io/cocoindex-code / _find_ccc_executable

Function _find_ccc_executable

src/cocoindex_code/client.py:451–459  ·  view source on GitHub ↗

Find the ccc executable in PATH or the same directory as python.

()

Source from the content-addressed store, hash-verified

449
450
451def _find_ccc_executable() -> str | None:
452 """Find the ccc executable in PATH or the same directory as python."""
453 python_dir = Path(sys.executable).parent
454 names = ["ccc.exe", "ccc"] if sys.platform == "win32" else ["ccc"]
455 for name in names:
456 ccc = python_dir / name
457 if ccc.exists():
458 return str(ccc)
459 return None
460
461
462def _pid_alive(pid: int) -> bool:

Callers 1

start_daemonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected