[Scons-users] Replace env['BUILDERS']['Program'] and env.Configure
Luc Bourhis
luc_j_bourhis at mac.com
Wed Aug 22 18:06:25 EDT 2012
Hi,
I am using what seemed a classic trick:
def _(env, target, source, **args):
env = env.Clone()
# do something to env
return env.OriginalProgram(target, source, **args)
env['BUILDERS']['OriginalProgram'] = env['BUILDERS']['Program']
env['BUILDERS']['Program'] = _
However, this crashes env.TryBuild:
File "/Users/luc/Developer/cctbx/scons/src/engine/SCons/SConf.py", line 546, in TryBuild
pref = self.env.subst( builder.builder.prefix )
Here builder.builder is that function "_" of mine, which does not have an attribute "prefix" of course.
That's with SCons 2.2.0.
How would I go to work that problem around?
Best wishes,
Luc J. Bourhis
More information about the Scons-users
mailing list