SCons: Fix read_command so it can properly deal with command strings
This commit is contained in:
parent
312fbb1b48
commit
de72083805
1 changed files with 3 additions and 0 deletions
|
@ -114,6 +114,9 @@ def read_command(cmd, **kwargs):
|
||||||
this is sorta like `cmd` in shell"""
|
this is sorta like `cmd` in shell"""
|
||||||
from subprocess import Popen, PIPE, STDOUT
|
from subprocess import Popen, PIPE, STDOUT
|
||||||
|
|
||||||
|
if isinstance(cmd, str):
|
||||||
|
cmd = cmd.split()
|
||||||
|
|
||||||
no_exception = 'exception' in kwargs
|
no_exception = 'exception' in kwargs
|
||||||
exception = kwargs.pop('exception', None)
|
exception = kwargs.pop('exception', None)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue