Skip to content

Commit 5c48167

Browse files
whatevertogoclaude
andauthored
fix: add pyenv shims to PATH on macOS (#813)
When Unity is launched from Dock/Spotlight on macOS, GUI applications do not inherit the shell's PATH from .zshrc/.bashrc. This caused MCP for Unity to fail finding Python installed via pyenv. Add ~/.pyenv/shims to the augmented PATH in MacOSPlatformDetector so Python can be found regardless of how Unity is launched. Fixes #812 Co-authored-by: whatevertogo <whatevertogo@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d9a8e99 commit 5c48167

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

MCPForUnity/Editor/Dependencies/PlatformDetectors/MacOSPlatformDetector.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ private string[] GetPathAdditions()
188188
var homeDir = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
189189
return new[]
190190
{
191+
Path.Combine(homeDir, ".pyenv", "shims"), // pyenv: Python/uv when Unity is launched from Dock/Spotlight
191192
"/opt/homebrew/bin",
192193
"/usr/local/bin",
193194
"/usr/bin",

0 commit comments

Comments
 (0)