[Scons-users] passing o/s environment to children in a builder

Bill Deegan bill at baddogconsulting.com
Wed Apr 9 12:58:10 EDT 2014


Tom,
On Wed, Apr 9, 2014 at 7:26 AM, Tom Tanner (BLOOMBERG/ LONDON) <
ttanner2 at bloomberg.net> wrote:


> There's a few utilities we have that expect to be run with enough of a

> path to find things in /usr/bin, but in the main I'd prefer to avoid

> passing that in env['ENV']['PATH'] as (at least under make), it lead to

> some very sloppy and non-portable coding.

>

> But I can't find any way of passing an environment down to an action

> object from a builder without doing something like PATH=/usr/bin in the

> command line, which looks painful. Am I missing something?

>


So clone your environment, and change the PATH for the one you use for that
tool.

-Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20140409/8892fb36/attachment.html


More information about the Scons-users mailing list