[Scons-dev] Time for a show down…

Russel Winder russel at winder.org.uk
Sun Sep 7 06:40:59 EDT 2014


On Sat, 2014-09-06 at 06:27 -0400, Gary Oberbrunner wrote:
> On Sat, Sep 6, 2014 at 6:16 AM, Russel Winder <russel at winder.org.uk> wrote:
> 
> > TestSCons.TestSCons.where_is searches the user's path for an executable.
> > When running tests SCons does not use the users path, just the default
> > system path, to search for executables. where_is is therefore either
> > broken or useless.
> >
> 
> I hear you.  Let's say it is broken.  What's the fix?  Don't use $PATH by
> default?

Having "slept on it", yes I think this is what I mean. where_is is a
fine method per se, it just has the wrong default behaviour: default
should be whatever SCons default path is and parameters should be given
to change it.

> Some tests want to deliberately look in $PATH and set up the test
> accordingly;
> maybe the simple fix is just to not use os.environ['PATH'] when the
> passed-in
> optional path arg is None.  Any test that really wants that would have to
> explicitly pass os.environ['PATH'].  I wonder how many tests that would
> break.

We need three possibilities: a. SCons default, b. Users PATH, c.
arbitrary path.

Currently None means Users PATH and the alternative is arbitrary path. I
need to think a bit more about the possibilities of parameters to make
this work best. Others may already have good solutions.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://pairlist2.pair.net/pipermail/scons-dev/attachments/20140907/89cccacc/attachment.pgp>


More information about the Scons-dev mailing list