We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.exe
1 parent 57ff533 commit 50cfbd9Copy full SHA for 50cfbd9
crates/uv/src/commands/project/run.rs
@@ -897,7 +897,11 @@ pub(crate) async fn run(
897
.map(|entry| entry.path())
898
.filter(|path| is_executable(path))
899
.map(|path| {
900
- if cfg!(windows) {
+ if cfg!(windows)
901
+ && path
902
+ .extension()
903
+ .is_some_and(|exe| exe == std::env::consts::EXE_EXTENSION)
904
+ {
905
// Remove the extensions.
906
path.with_extension("")
907
} else {
crates/uv/tests/it/run.rs
@@ -248,7 +248,7 @@ fn run_no_args() -> Result<()> {
248
249
The following commands are available in the environment:
250
251
- - pydoc
+ - pydoc.bat
252
- python
253
- pythonw
254
0 commit comments