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

Class ExecutableSpec

deeplabcut/core/debug/debug_logger.py:396–414  ·  view source on GitHub ↗

Small description of an external executable to report. Parameters ---------- key: Label used in the output report. command: Executable name or absolute path to resolve. version_args: Arguments used to query the executable version.

Source from the content-addressed store, hash-verified

394
395@dataclass(frozen=True)
396class ExecutableSpec:
397 """Small description of an external executable to report.
398
399 Parameters
400 ----------
401 key:
402 Label used in the output report.
403 command:
404 Executable name or absolute path to resolve.
405 version_args:
406 Arguments used to query the executable version.
407 """
408
409 key: str
410 command: str | None = None
411 version_args: tuple[str, ...] = ("-version",)
412
413 def resolved_command(self) -> str:
414 return self.command or self.key
415
416
417DEFAULT_EXECUTABLE_SPECS: tuple[ExecutableSpec, ...] = (ExecutableSpec("ffmpeg"),)

Calls

no outgoing calls