[Scons-dev] detect vs. where_is
Managan, Rob
managan1 at llnl.gov
Thu Oct 25 14:22:23 EDT 2012
Since I am guilty of building tests by copying from existing ones I suppose I should ask this question.
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.
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Rob Managan email managan at llnl.gov
LLNL phone: 925-423-0903
P.O. Box 808, L-095 FAX: 925-422-3389
Livermore, CA 94551-0808
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/scons-dev/attachments/20121025/69c11f4a/attachment.html>
More information about the Scons-dev
mailing list