summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2009-02-15 20:38:49 -0800
committerNathan Binkert <nate@binkert.org>2009-02-15 20:38:49 -0800
commitde720838053d30defcb3b5d07b76ea599b9c05ea (patch)
treea9b169e7385e5ee7718ae6d1dbd7694ba48ecda5
parent312fbb1b485f2e35d03e8db7faf587c1d5660b93 (diff)
downloadgem5-de720838053d30defcb3b5d07b76ea599b9c05ea.tar.xz
SCons: Fix read_command so it can properly deal with command strings
-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)