summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/spawn.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>1999-09-08 02:23:28 (GMT)
committerGreg Ward <gward@python.net>1999-09-08 02:23:28 (GMT)
commita4d132a868902ee2f1d73bf50de7af229ae72991 (patch)
treed7203ddf66417892e0992c63813072d77eaa66c8 /Lib/distutils/spawn.py
parent65bb328f67ba8b3d835bf8bf211dcee37463d975 (diff)
downloadcpython-a4d132a868902ee2f1d73bf50de7af229ae72991.zip
cpython-a4d132a868902ee2f1d73bf50de7af229ae72991.tar.gz
cpython-a4d132a868902ee2f1d73bf50de7af229ae72991.tar.bz2
[from 1999/08/28]
Apparently os.name is "nt" or "posix" or we don't care. Cosmetic tweaks.
Diffstat (limited to 'Lib/distutils/spawn.py')
-rw-r--r--Lib/distutils/spawn.py4
1 files changed, 2 insertions, 2 deletions
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 @@ def spawn (cmd,
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 @@ def spawn (cmd,
# 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)