diff options
author | Guido van Rossum <guido@python.org> | 1999-02-01 23:52:29 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-02-01 23:52:29 (GMT) |
commit | 67c65b2954e8fc2bfc3838a4ca0e6ed76cdb1829 (patch) | |
tree | c18b93f82d90992092256bef98e9d344f518dd65 /Lib/os.py | |
parent | 8e47306b993ccc9745cf8e21e1d008e6ee8e7a16 (diff) | |
download | cpython-67c65b2954e8fc2bfc3838a4ca0e6ed76cdb1829.zip cpython-67c65b2954e8fc2bfc3838a4ca0e6ed76cdb1829.tar.gz cpython-67c65b2954e8fc2bfc3838a4ca0e6ed76cdb1829.tar.bz2 |
Special-case _P_WAIT etc. for NT.
Diffstat (limited to 'Lib/os.py')
-rw-r--r-- | Lib/os.py | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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 |