Apparently os.name is "nt" or "posix" or we don't care.
Cosmetic tweaks.
if os.name == 'posix':
_spawn_posix (cmd, search_path, verbose, dry_run)
- elif os.name in ( 'nt', 'windows' ): # ???
+ elif os.name == 'nt':
_spawn_nt (cmd, search_path, verbose, dry_run)
else:
raise DistutilsPlatformError, \
# spawn ()
+
def _spawn_nt ( cmd,
search_path=1,
verbose=0,
dry_run=0):
- import string
executable = cmd[0]
if search_path:
paths = string.split( os.environ['PATH'], os.pathsep)