From: Nathan Binkert Date: Mon, 16 Feb 2009 04:38:49 +0000 (-0800) Subject: SCons: Fix read_command so it can properly deal with command strings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=de720838053d30defcb3b5d07b76ea599b9c05ea;p=gem5.git SCons: Fix read_command so it can properly deal with command strings --- 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)