MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / _which

Function _which

deeplabcut/core/debug/_debug_utils.py:62–67  ·  view source on GitHub ↗
(command: str)

Source from the content-addressed store, hash-verified

60
61
62def _which(command: str) -> str:
63 try:
64 resolved = shutil.which(command)
65 return str(Path(resolved).resolve()) if resolved else "not-found"
66 except Exception:
67 return "not-found"
68
69
70def _command_version(command: str, version_args: Sequence[str] = ("-version",)) -> str:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected