mirror of
https://github.com/python/cpython.git
synced 2025-07-19 17:25:54 +00:00
[from 1999/08/28]
Apparently os.name is "nt" or "posix" or we don't care. Cosmetic tweaks.
This commit is contained in:
parent
65bb328f67
commit
a4d132a868
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue