diff options
author | Guido van Rossum <guido@python.org> | 1997-11-22 21:53:48 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-11-22 21:53:48 (GMT) |
commit | 8e9ebfd337f18f7b707853a3f2f49cc6245c0596 (patch) | |
tree | fe6a0f373d376dede8ad635c250ab83c19965a3f /Lib/os.py | |
parent | c0b93191e6e12fb391461545031808f74a8ae956 (diff) | |
download | cpython-8e9ebfd337f18f7b707853a3f2f49cc6245c0596.zip cpython-8e9ebfd337f18f7b707853a3f2f49cc6245c0596.tar.gz cpython-8e9ebfd337f18f7b707853a3f2f49cc6245c0596.tar.bz2 |
os2 patch by Jeff Rush
Diffstat (limited to 'Lib/os.py')
-rw-r--r-- | Lib/os.py | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -59,6 +59,18 @@ elif 'dos' in _names: import dospath path = dospath del dospath +elif 'os2' in _names: + name = 'os2' + curdir = '.'; pardir = '..'; sep = '\\'; pathsep = ';' + defpath = '.;C:\\bin' + from os2 import * + try: + from os2 import _exit + except ImportError: + pass + import ntpath + path = ntpath + del ntpath elif 'mac' in _names: name = 'mac' curdir = ':'; pardir = '::'; sep = ':'; pathsep = '\n' |