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

Function collect_executable_summary

deeplabcut/core/debug/debug_logger.py:435–450  ·  view source on GitHub ↗
(
    *,
    executables: Iterable[ExecutableSpec | str] | None = None,
    include_paths: bool = True,
)

Source from the content-addressed store, hash-verified

433
434
435def collect_executable_summary(
436 *,
437 executables: Iterable[ExecutableSpec | str] | None = None,
438 include_paths: bool = True,
439) -> dict[str, str]:
440 specs = _normalize_executable_specs(executables)
441 summary: dict[str, str] = {}
442
443 for spec in specs:
444 key = spec.key
445 command = spec.resolved_command()
446 summary[key] = _command_version(command, spec.version_args)
447 if include_paths:
448 summary[f"{key}_path"] = _safe_tail(_which(command))
449
450 return summary
451
452
453# --------------------------

Calls 5

_command_versionFunction · 0.85
_safe_tailFunction · 0.85
_whichFunction · 0.85
resolved_commandMethod · 0.80