[Scons-users] Builder Arguments: **kwargs?
John Galbraith
jgalb at lanl.gov
Mon Jul 30 18:49:58 EDT 2012
Bill, inside my actions I am making plots with matplotlib, generating
png images, etc. The actions are python functions, not system calls.
The arguments would include things like the hdf5 dataset name, a
particular slice of the larger dataset to plot, axis labels, etc.
Without arguments, I can make a slew of builders, each with specific
values for each of these parameters. That works, but is not exactly
elegant. For instance, I currently plot a series of identical images,
except that each one is a different slice of the dataset. One argument,
specifying the slice, would reduce the number of builders required to
one, instead of a completely separate builder for each slice. The
builders are literally identical, except for one parameter.
I know I am (ab)using scons to work outside it's original design
concept It really almost works for this purpose though, if it just
supported action arguments.
John
> In what way do you want to alter the behavior of the action?
> Add additional command line arguments?
> Other?
>
> -Bill
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20120730/80c7181e/attachment-0001.htm>
More information about the Scons-users
mailing list