summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/Lib/os.py b/Lib/os.py
index 15230c1..a8a08ed 100644
--- 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