Get the Unity Editor binary path for a version.
(editor_base: Path, version: str)
| 63 | |
| 64 | |
| 65 | def _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) |
no outgoing calls
no test coverage detected