From 8e9ebfd337f18f7b707853a3f2f49cc6245c0596 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sat, 22 Nov 1997 21:53:48 +0000 Subject: os2 patch by Jeff Rush --- Lib/os.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Lib/os.py') diff --git a/Lib/os.py b/Lib/os.py index 7f9e696f34..16d0af9240 100644 --- a/Lib/os.py +++ b/Lib/os.py @@ -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' -- cgit v1.2.1