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.
1 parent fe36bce commit ecf1137Copy full SHA for ecf1137
libs/python/detect.go
@@ -26,6 +26,12 @@ func DetectExecutable(ctx context.Context) (string, error) {
26
//
27
// See https://github.com/pyenv/pyenv#understanding-python-version-selection
28
out, err := exec.LookPath("python3")
29
+
30
+ // On Windows with uv, the venv/Scripts directory contains python.exe but not python3.exe nor python3
31
+ if runtime.GOOS == "windows" && err != nil && errors.Is(err, exec.ErrNotFound) {
32
+ out, err = exec.LookPath("python.exe")
33
+ }
34
35
// most of the OS'es have python3 in $PATH, but for those which don't,
36
// we perform the latest version lookup
37
if err != nil && !errors.Is(err, exec.ErrNotFound) {
0 commit comments