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:
Andrew MacIntyre 2002-02-24 05:32:32 +00:00
parent 75a8e65873
commit 5cef57131f
6 changed files with 446 additions and 15 deletions

View file

@ -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))