[Scons-users] Tool specification `exists()` not called?

Dirk Bächle tshortik at gmx.de
Wed Oct 9 14:41:01 EDT 2013


Hi Márcio,

On 09.10.2013 19:35, Márcio Faustino wrote:

> Hi,

>

> I'm writing a tool specification to be loaded by SCons from

> "site_scons/site_tools", and although it seems to work fine the

> `exists()` function does not get called as is written in the manual.

>


I just checked the current MAN page and UserGuide for v2.3.0 but
couldn't find a place where this is claimed. Can you give us a pointer
to the exact chapter/section? Then I'd try to correct this...


> Am I missing something? Here's my example tool:

> https://github.com/marciof/site_scons/blob/master/site_tools/travis-lint.py

>


The automatic calling of the exists() function is only done for core
Tools, when they get tried one after the other to setup the default
environment. For custom Tools that get loaded additionally this method
isn't called. However, you're free to do this in your SConscript if you
like.

Best regards,

Dirk



More information about the Scons-users mailing list