From de720838053d30defcb3b5d07b76ea599b9c05ea Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Sun, 15 Feb 2009 20:38:49 -0800 Subject: SCons: Fix read_command so it can properly deal with command strings --- SConstruct | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit v1.2.3