diff --git a/libexec/pyenv-init b/libexec/pyenv-init index 1ec453cf..eb0115be 100755 --- a/libexec/pyenv-init +++ b/libexec/pyenv-init @@ -321,7 +321,7 @@ function pyenv { } if ( ("${commands[*]}" -split ' ') -contains \$command ) { - \$shell_cmds = & \$Env:PYENV_ROOT/bin/pyenv sh-\$command \$args + \$shell_cmds = &pyenv sh-\$command \$args if ( \$shell_cmds.Count -gt 0 ) { iex (\$shell_cmds -join "\`n") }