On Oct 5, 2012 9:36 AM, "Left Right" <[email protected]> wrote:
>
> 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)

This should work, except the name of the environment constructor is
Environment(), not Env().

Then env['foo'] should be 42.

> 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
> _______________________________________________
> Scons-dev mailing list
> [email protected]
> http://two.pairlist.net/mailman/listinfo/scons-dev
_______________________________________________
Scons-dev mailing list
[email protected]
http://two.pairlist.net/mailman/listinfo/scons-dev

Reply via email to