Platform-specific editor installation base directory.
()
| 53 | |
| 54 | |
| 55 | def _get_platform_editor_base() -> Path: |
| 56 | """Platform-specific editor installation base directory.""" |
| 57 | if sys.platform == "darwin": |
| 58 | return Path("/Applications/Unity/Hub/Editor") |
| 59 | elif sys.platform == "win32": |
| 60 | return Path(r"C:\Program Files\Unity\Hub\Editor") |
| 61 | else: # Linux |
| 62 | return Path.home() / "Unity/Hub/Editor" |
| 63 | |
| 64 | |
| 65 | def _get_editor_binary_path(editor_base: Path, version: str) -> Path: |
no outgoing calls
no test coverage detected