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

Tom Tanner (BLOOMBERG/ LONDON) ttanner2 at bloomberg.net
Thu Oct 10 03:16:03 EDT 2013


<huge snip>


> env = Environment(tools=[])

> # Builders get installed, even though the executables are

> # not found on the path

> env.Tool('Qt4')

> # Now we correct the paths to our commands

> # and make the Builders work

> env['QT4DIR'] = '/something/special/not/in/path'



> Dirk

I'd like to do it the other way round to be honest.

env.Tool('QT4')

would fail if it can't find QT4 in the expected place

env['QT4DIR'] = '/somethng/special/'
env.Tool('QT4')

We have certain tools where some of the tooling depends on which version of the tool is being used, and that only works if you can point the tool to the right place before hand.


More information about the Scons-users mailing list