A patch from Andrew Wilkinson to change some bizarre old exec statements
specific to NT and CE.
curdir = '.'; pardir = '..'; sep = '\\'; pathsep = ';'
defpath = '.;C:\\bin'
from nt import *
- for i in ['_exit']:
- try:
- exec "from nt import " + i
- except ImportError:
- pass
+ try:
+ from nt import _exit
+ except ImportError:
+ pass
import ntpath
path = ntpath
del ntpath
curdir = '.'; pardir = '..'; sep = '\\'; pathsep = ';'
defpath = '\\Windows'
from ce import *
- for i in ['_exit']:
- try:
- exec "from ce import " + i
- except ImportError:
- pass
+ try:
+ from ce import _exit
+ except ImportError:
+ pass
# We can use the standard Windows path.
import ntpath
path = ntpath