Skip to content

Commit 10bf7d9

Browse files
committed
Fix: Update binary path for pyenv on Windows to use pyenv.bat instead of pyenv.exe
1 parent bfbd44d commit 10bf7d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/pet-pyenv/src/environment_locations.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ pub fn get_home_pyenv_dir(env_vars: &EnvVariables) -> Option<PathBuf> {
2020
pub fn get_binary_from_known_paths(env_vars: &EnvVariables) -> Option<PathBuf> {
2121
for known_path in &env_vars.known_global_search_locations {
2222
let exe = if cfg!(windows) {
23-
known_path.join("pyenv.exe")
23+
// pyenv-win provides pyenv.bat, not pyenv.exe
24+
known_path.join("pyenv.bat")
2425
} else {
2526
known_path.join("pyenv")
2627
};

0 commit comments

Comments
 (0)