On Tue, Sep 21, 2010 at 11:32:45AM +1200, Ralph Versteegen wrote:
> On 20 September 2010 20:54,  <[email protected]> wrote:
> > kampu
> > 2010-09-20 01:54:38 -0700 (Mon, 20 Sep 2010)
> > 33
> > Some Scons fixes suggested by TMC
> > ---
> > U   wip/SConscript
> 
> You seem to have missed my changes in r3764: it's not necessary to
> import all of os.environ, just PATH. But the default ENV will contain
> variables like HOME and TEMP, without which gcc crashes. I already
> fixed this by adding "env['ENV']['PATH'] = os.environ['PATH']"
> 
> But if you think it's cleaner to just import all of os.environ, that's
> up to you.

>From my readings of SCons documentation, using the system path is 
strongy discouraged, because it can lead to system-specific build 
problems.

env['ENV']['PATH'] = os.environ['PATH']

sounds correct because we want to be importing the smallest part of the 
system environment that we can while still making things work.

---
James Paige
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to