[Scons-users] Use raw substitution with Actions

Stefan Ross stefan at electricimp.com
Wed Nov 25 07:29:21 EST 2015


Hi,

I want to build an Action using raw variable substitution, i.e. my action
looks a bit like this:

e['something'] = 'a        b      c'
e.Command('target', 'source', Action('echo $something > $TARGET'))

This doesn't work because the internal whitespace in $something is removed
(and I need it).  I see the documentation for subst allows for a raw mode
(which works), but since I'm not using subst directly, is there any way to
construct the Action I want here?

Thanks

Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20151125/11c8c8da/attachment.html>


More information about the Scons-users mailing list