summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/Lib/os.py b/Lib/os.py
index d4cfff9..e99ce2a 100644
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -89,6 +89,21 @@ elif 'mac' in _names:
import macpath
path = macpath
del macpath
+elif 'ce' in _names:
+ name = 'ce'
+ linesep = '\r\n'
+ curdir = '.'; pardir = '..'; sep = '\\'; pathsep = ';'
+ defpath = '\\Windows'
+ from ce import *
+ for i in ['_exit']:
+ try:
+ exec "from ce import " + i
+ except ImportError:
+ pass
+ # We can use the standard Windows path.
+ import ntpath
+ path = ntpath
+ del ntpath
else:
raise ImportError, 'no os specific module found'