MCPcopy Create free account
hub / github.com/Pagefind/pagefind / get_executable

Function get_executable

wrappers/python/src/pagefind_python_bin/__init__.py:25–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23
24
25def get_executable() -> Path:
26 candidates = get_candidate_paths()
27 for candidate in candidates:
28 if candidate.exists():
29 log.debug(f"{candidate} found")
30 if candidate.is_file():
31 return candidate
32 else:
33 raise FileNotFoundError(f"{candidate} is not a file")
34 else:
35 log.debug(f"{candidate} not found")
36 raise FileNotFoundError(f"Could not find any of {candidates}")
37
38
39def cli() -> None:

Callers 1

cliFunction · 0.70

Calls 1

get_candidate_pathsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…