[Scons-users] Getting the result of an action?

Russell E. Owen rowen at uw.edu
Thu Sep 25 11:21:46 EDT 2014


As part of configuring some environment variables in an SConstruct file 
I want to run the command

$CC --version

and parse the output (or raise an exception if it fails). Is there 
something like SCons.Script.Action(action) that I can use? That 
particular command seems to only return the exit code, which isn't what 
I need in this case.

Alternatively, is it safe to use the subprocess module for this?

-- Russell



More information about the Scons-users mailing list