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

Function _get_platform_editor_base

unity_cli/hub/paths.py:55–62  ·  view source on GitHub ↗

Platform-specific editor installation base directory.

()

Source from the content-addressed store, hash-verified

53
54
55def _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
65def _get_editor_binary_path(editor_base: Path, version: str) -> Path:

Callers 1

get_platform_pathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected