mirror of
https://github.com/python/cpython.git
synced 2025-12-08 02:08:20 +00:00
Special-case _P_WAIT etc. for NT.
This commit is contained in:
parent
8e47306b99
commit
67c65b2954
1 changed files with 7 additions and 4 deletions
|
|
@ -42,8 +42,11 @@ elif 'nt' in _names:
|
||||||
curdir = '.'; pardir = '..'; sep = '\\'; pathsep = ';'
|
curdir = '.'; pardir = '..'; sep = '\\'; pathsep = ';'
|
||||||
defpath = '.;C:\\bin'
|
defpath = '.;C:\\bin'
|
||||||
from nt import *
|
from nt import *
|
||||||
|
for i in ['_exit',
|
||||||
|
'_P_WAIT', '_P_NOWAIT', '_P_OVERLAY',
|
||||||
|
'_P_NOWAITO', '_P_DETACH']:
|
||||||
try:
|
try:
|
||||||
from nt import _exit
|
exec "from nt import " + i
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
import ntpath
|
import ntpath
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue