summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-06-11 01:37:27 (GMT)
committerGuido van Rossum <guido@python.org>1999-06-11 01:37:27 (GMT)
commit18df5d479c087b6b4af4af356ead6ac84b2855ca (patch)
treefb5560791424b580ca178877a23d25d3c7a2ca6a /Lib
parent4afdb0a89a0e095bf0f579e46ad9a13eedf51f61 (diff)
downloadcpython-18df5d479c087b6b4af4af356ead6ac84b2855ca.zip
cpython-18df5d479c087b6b4af4af356ead6ac84b2855ca.tar.gz
cpython-18df5d479c087b6b4af4af356ead6ac84b2855ca.tar.bz2
Mark Hammond: patch for Windows/CE.
Diffstat (limited to 'Lib')
-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'