Commit a4d132a8 authored by Greg Ward's avatar Greg Ward

[from 1999/08/28]

Apparently os.name is "nt" or "posix" or we don't care.
Cosmetic tweaks.
parent 65bb328f
...@@ -33,7 +33,7 @@ def spawn (cmd, ...@@ -33,7 +33,7 @@ def spawn (cmd,
if os.name == 'posix': if os.name == 'posix':
_spawn_posix (cmd, search_path, verbose, dry_run) _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) _spawn_nt (cmd, search_path, verbose, dry_run)
else: else:
raise DistutilsPlatformError, \ raise DistutilsPlatformError, \
...@@ -41,11 +41,11 @@ def spawn (cmd, ...@@ -41,11 +41,11 @@ def spawn (cmd,
# spawn () # spawn ()
def _spawn_nt ( cmd, def _spawn_nt ( cmd,
search_path=1, search_path=1,
verbose=0, verbose=0,
dry_run=0): dry_run=0):
import string
executable = cmd[0] executable = cmd[0]
if search_path: if search_path:
paths = string.split( os.environ['PATH'], os.pathsep) paths = string.split( os.environ['PATH'], os.pathsep)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment