On Sat, 2014-09-06 at 06:27 -0400, Gary Oberbrunner wrote: > On Sat, Sep 6, 2014 at 6:16 AM, Russel Winder <[email protected]> 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:[email protected] 41 Buckmaster Road m: +44 7770 465 077 xmpp: [email protected] London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Scons-dev mailing list [email protected] https://pairlist2.pair.net/mailman/listinfo/scons-dev
