From: Guido van Rossum Date: Fri, 11 Jun 1999 01:37:27 +0000 (+0000) Subject: Mark Hammond: patch for Windows/CE. X-Git-Tag: v1.6a1~1235 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=18df5d479c087b6b4af4af356ead6ac84b2855ca;p=python Mark Hammond: patch for Windows/CE. --- diff --git a/Lib/os.py b/Lib/os.py index d4cfff987e..e99ce2a018 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'