[Scons-users] Trying to use Execute()

William Deegan bill at baddogconsulting.com
Thu Nov 21 17:31:48 EST 2013



On Nov 21, 2013, at 12:22 PM, Leandro Moreno <leandro.moreno at tallertechnologies.com> wrote:


> Hello again SCons guys!

>

> This time, I have an inconvenient trying to use the function Execute() from SCons.

> I have a builder to check the name's convention. But the tool that do the job, check the dependencies errors too. And I want to filter those errors. So, to do this I use subprocess.Popen(), and I take the stderr.

> Now, I want to use The Execute(), but the problem here is that I don't know how to take the output to manipulate It. Is there a way to do this?


Redirect the output to a file, add the file to the list of outputs in the builder's emitter.
Create another builder to process that file.

-Bill


More information about the Scons-users mailing list