When the .ini file is read the application has been already loaded.
So whenever you try to access a configuration option at import time it
won't be available because your python package is imported before loading
the configuration options.

You should make access to configuration options lazy through something
which is resolved after having loaded the configuration file.



On Tue, May 14, 2013 at 4:50 PM, Luca Verardi <[email protected]>wrote:

> Hi,
> I have a var in a .ini file, but i can't find it inside  model/__init__.py
> why?
> thanks for your answer.
>
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/turbogears?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to