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

Function _get_editor_binary_path

unity_cli/hub/paths.py:65–72  ·  view source on GitHub ↗

Get the Unity Editor binary path for a version.

(editor_base: Path, version: str)

Source from the content-addressed store, hash-verified

63
64
65def _get_editor_binary_path(editor_base: Path, version: str) -> Path:
66 """Get the Unity Editor binary path for a version."""
67 if sys.platform == "darwin":
68 return editor_base / version / "Unity.app/Contents/MacOS/Unity"
69 elif sys.platform == "win32":
70 return editor_base / version / "Editor/Unity.exe"
71 else: # Linux
72 return editor_base / version / "Editor/Unity"
73
74
75@lru_cache(maxsize=1)

Callers 1

get_installed_editorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected