summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/Lib/os.py b/Lib/os.py
index 7f9e696..16d0af9 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'