[from 1999/08/28]
Apparently os.name is "nt" or "posix" or we don't care.
Cosmetic tweaks.
diff --git a/Lib/distutils/spawn.py b/Lib/distutils/spawn.py
index 3a0702d..eee8e7f 100644
--- a/Lib/distutils/spawn.py
+++ b/Lib/distutils/spawn.py
@@ -33,7 +33,7 @@
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, \
@@ -41,11 +41,11 @@
# 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)