SCons: Fix read_command so it can properly deal with command strings
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user