[Scons-dev] How to get variables passed to Env(variables = whatever)?

Left Right olegsivokon at gmail.com
Fri Oct 5 09:35:54 EDT 2012


Hi,
I've found this page: http://www.scons.org/doc/1.1.0/HTML/scons-user/x2361.html
And it shows that the user could, in theory do something like:

v = Variables()
v.Add('foo', 42)
env = Env(variables = v)

I was struggling to find where did this variable go, but no traces...
I would expect them to appear in

def generate(env):
env.get('foo') <--- but it doesn't exist here
env._dict.keys() <--- foo doesn't exist here either...

Why? How else should I look for it?

Thanks.

Oleg


More information about the Scons-dev mailing list