mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
OS/2 EMX port Library and regression test changes:
Lib/ os.py os2emxpath.py // added - OS/2 EMX specific path manipulation routines popen2.py site.py Lib/test/ test_fcntl.py test_longexp.py
This commit is contained in:
parent
75a8e65873
commit
5cef57131f
6 changed files with 446 additions and 15 deletions
19
Lib/os.py
19
Lib/os.py
|
@ -95,16 +95,27 @@ elif 'dos' in _names:
|
|||
elif 'os2' in _names:
|
||||
name = 'os2'
|
||||
linesep = '\r\n'
|
||||
curdir = '.'; pardir = '..'; sep = '\\'; pathsep = ';'
|
||||
curdir = '.'; pardir = '..'; pathsep = ';'
|
||||
if sys.version.find('EMX GCC') == -1:
|
||||
# standard OS/2 compiler (VACPP or Watcom?)
|
||||
sep = '\\'; altsep = '/'
|
||||
else:
|
||||
# EMX
|
||||
sep = '/'; altsep = '\\'
|
||||
defpath = '.;C:\\bin'
|
||||
from os2 import *
|
||||
try:
|
||||
from os2 import _exit
|
||||
except ImportError:
|
||||
pass
|
||||
import ntpath
|
||||
path = ntpath
|
||||
del ntpath
|
||||
if sys.version.find('EMX GCC') == -1:
|
||||
import ntpath
|
||||
path = ntpath
|
||||
del ntpath
|
||||
else:
|
||||
import os2emxpath
|
||||
path = os2emxpath
|
||||
del os2emxpath
|
||||
|
||||
import os2
|
||||
__all__.extend(_get_exports_list(os2))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue