MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / find_editor_by_version

Function find_editor_by_version

unity_cli/hub/paths.py:142–148  ·  view source on GitHub ↗

Find an installed editor by version string.

(version: str)

Source from the content-addressed store, hash-verified

140
141
142def find_editor_by_version(version: str) -> InstalledEditor | None:
143 """Find an installed editor by version string."""
144 editors = get_installed_editors()
145 for editor in editors:
146 if editor.version == version:
147 return editor
148 return None

Callers 2

resolve_editorMethod · 0.90

Calls 1

get_installed_editorsFunction · 0.85

Tested by

no test coverage detected