Skip to content

Commit

Permalink
Fix an issue where global python shims did not honor .python-version
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Jan 20, 2024
1 parent cf274b2 commit 19152e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rye/src/cli/shim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ fn get_shim_target(
PythonVersionRequest::from_str(rest)
.context("invalid python version requested from command line")?
} else if config.global_python() {
match get_python_version_request_from_pyenv_pin(&std::env::current_exe()?) {
match get_python_version_request_from_pyenv_pin(&std::env::current_dir()?) {
Some(version_request) => version_request,
None => config.default_toolchain()?,
}
Expand Down

0 comments on commit 19152e7

Please sign in to comment.