]> granicus.if.org Git - python/commitdiff
Special-case _P_WAIT etc. for NT.
authorGuido van Rossum <guido@python.org>
Mon, 1 Feb 1999 23:52:29 +0000 (23:52 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 1 Feb 1999 23:52:29 +0000 (23:52 +0000)
Lib/os.py

index 15230c165401cb52f630395f239bbe1b3ff34d9f..a8a08ed43aa69ac17531512bd5fb982b586e3eef 100644 (file)
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -42,10 +42,13 @@ elif 'nt' in _names:
     curdir = '.'; pardir = '..'; sep = '\\'; pathsep = ';'
     defpath = '.;C:\\bin'
     from nt import *
-    try:
-        from nt import _exit
-    except ImportError:
-        pass
+    for i in ['_exit',
+              '_P_WAIT', '_P_NOWAIT', '_P_OVERLAY',
+              '_P_NOWAITO', '_P_DETACH']:
+        try:
+            exec "from nt import " + i
+        except ImportError:
+            pass
     import ntpath
     path = ntpath
     del ntpath