summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct3
1 files changed, 3 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index e65c2da39..dc3addcd8 100644
--- a/SConstruct
+++ b/SConstruct
@@ -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)