Skip to content

Commit b0488b7

Browse files
authored
fix: update pyenv binary name for Windows compatibility (#1161)
For #590
1 parent 7551eb5 commit b0488b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/managers/pyenv/pyenvUtils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ export async function getPyenv(native?: NativePythonFinder): Promise<string | un
115115
await state.set(PYENV_PATH_KEY, undefined);
116116
}
117117

118-
const pyenvBin = isWindows() ? 'pyenv.exe' : 'pyenv';
118+
// pyenv-win provides pyenv.bat, not pyenv.exe
119+
// See: https://github.com/pyenv-win/pyenv-win
120+
const pyenvBin = isWindows() ? 'pyenv.bat' : 'pyenv';
119121
const pyenvRoot = process.env.PYENV_ROOT;
120122
if (pyenvRoot) {
121123
const pyenvPath = path.join(pyenvRoot, 'bin', pyenvBin);

0 commit comments

Comments
 (0)