mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
#16135: Removal of OS/2 support (Python code partial cleanup)
This commit is contained in:
parent
f1af705720
commit
4791a24268
11 changed files with 20 additions and 89 deletions
|
@ -38,7 +38,7 @@ def _find_executable(executable, path=None):
|
|||
paths = path.split(os.pathsep)
|
||||
base, ext = os.path.splitext(executable)
|
||||
|
||||
if (sys.platform == 'win32' or os.name == 'os2') and (ext != '.exe'):
|
||||
if (sys.platform == 'win32') and (ext != '.exe'):
|
||||
executable = executable + '.exe'
|
||||
|
||||
if not os.path.isfile(executable):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue