@@ -1092,7 +1092,7 @@ hint: If you are running a script with `{}` in the shebang, you may need to incl
1092
1092
// Ensure `VIRTUAL_ENV` is set.
1093
1093
if interpreter. is_virtualenv ( ) {
1094
1094
process. env ( EnvVars :: VIRTUAL_ENV , interpreter. sys_prefix ( ) . as_os_str ( ) ) ;
1095
- } ;
1095
+ }
1096
1096
1097
1097
// Spawn and wait for completion
1098
1098
// Standard input, output, and error streams are all inherited
@@ -1107,18 +1107,18 @@ hint: If you are running a script with `{}` in the shebang, you may need to incl
1107
1107
if err. kind ( ) == std:: io:: ErrorKind :: NotFound && is_python_executable ( & executable) {
1108
1108
// Get version from python command string
1109
1109
// e.g. python3.12 -> "3.12" or "" if python version not specified.
1110
- let version_part = executable. strip_prefix ( "python" ) . unwrap_or ( "" ) ;
1110
+ let specified_version = executable. strip_prefix ( "python" ) . unwrap_or ( "" ) ;
1111
1111
let current_executable_python_version = base_interpreter. python_version ( ) . only_release ( ) ;
1112
1112
// Determine the environment type
1113
1113
let env_type = if project_found { "project" } else { "virtual" } ;
1114
1114
1115
1115
let message_suffix = if project_found {
1116
1116
format ! (
1117
- "Did you mean to change the environment to Python {version_part } with `uv run -p {version_part } python`?"
1117
+ "Did you mean to change the environment to Python {specified_version } with `uv run -p {specified_version } python`?"
1118
1118
)
1119
1119
} else {
1120
1120
format ! (
1121
- "Did you mean to search for a Python {version_part } environment with `uv run -p {version_part } python`?"
1121
+ "Did you mean to search for a Python {specified_version } environment with `uv run -p {specified_version } python`?"
1122
1122
)
1123
1123
} ;
1124
1124
anyhow ! (
0 commit comments