[Scons-dev] detect vs. where_is
Russel Winder
russel at winder.org.uk
Fri Nov 9 12:56:39 EST 2012
On Thu, 2012-10-25 at 18:22 +0000, Managan, Rob wrote:
[…]
> Is there a good reason why tests tend to use test.where_is('my program') instead of test.detect('my program') ???
>
> I ask since where_is uses the os.environ path and detect uses the path set up by the default environment. For me, the latter is to be preferred since our default image for Macs includes some really old stuff that gets put on the path. This means that about 20-40 of the scons test fail since they think a tool is defined but the default environment can not run them since it is not on the environments path.
[…]
Setting up a good paradigm for tools would be a good idea here. Having
looked at a few tools, from what I can tell, no two tools use the same
approach to anything, and there are lots of arcane bits in some of them.
--
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: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : <http://two.pairlist.net/pipermail/scons-dev/attachments/20121109/52c6725b/attachment.pgp>
More information about the Scons-dev
mailing list