[Scons-dev] How to get variables passed to Env(variables = whatever)?
Gary Oberbrunner
garyo at oberbrunner.com
Fri Oct 5 09:53:06 EDT 2012
On Oct 5, 2012 9:36 AM, "Left Right" <olegsivokon at gmail.com> 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
> Scons-dev at scons.org
> http://two.pairlist.net/mailman/listinfo/scons-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/scons-dev/attachments/20121005/f89b10c6/attachment.html>
More information about the Scons-dev
mailing list