MCPcopy Create free account
hub / github.com/Dizzy-K/AutoPT / _build_scanner_check_command

Function _build_scanner_check_command

cli/main.py:249–253  ·  view source on GitHub ↗
(executable: str)

Source from the content-addressed store, hash-verified

247
248
249def _build_scanner_check_command(executable: str) -> str:
250 quoted = shlex.quote(executable)
251 if "/" in executable:
252 return f"if [ -x {quoted} ]; then printf %s {quoted}; else exit 1; fi"
253 return f"command -v {quoted}"
254
255
256def handle_benchmark_list(benchmark_file: str, *, verbose: bool = False) -> int:

Callers 1

handle_doctorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected