SCons: Fix read_command so it can properly deal with command strings

This commit is contained in:
Nathan Binkert 2009-02-15 20:38:49 -08:00
parent 312fbb1b48
commit de72083805

View file

@ -114,6 +114,9 @@ def read_command(cmd, **kwargs):
this is sorta like `cmd` in shell"""
from subprocess import Popen, PIPE, STDOUT
if isinstance(cmd, str):
cmd = cmd.split()
no_exception = 'exception' in kwargs
exception = kwargs.pop('exception', None)