-
-
Notifications
You must be signed in to change notification settings - Fork 34.3k
Closed as not planned
Labels
3.10only security fixesonly security fixes3.11only security fixesonly security fixesOS-windowstype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Calling distutils.spawn.find_executable("python.EXE") on Windows, where python.EXE actually exists fails because of the current code which does this:
_, ext = os.path.splitext(executable)
if (sys.platform == 'win32') and (ext != '.exe'):
executable = executable + '.exe'This code does not handle the case, which means the executable is modified to python.EXE.exe and therefore the file is never found.
Your environment
- CPython 3.10
- Windows
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
3.10only security fixesonly security fixes3.11only security fixesonly security fixesOS-windowstype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

