On Nov 29, 2006, at 8:55 PM, seber
...@spawar.navy.mil wrote:
> I was looking at source of update_config in turbogears/config.py.
> **ONLY** when a modulename param is passed does the config receive
> standard default paths such as top_level_dir, package_dir &
> current_dir_uri.
> Can someone please explain, if they don't mind, why when NO modulename
> param is passed does poor little config **NOT** get those nice paths
> defined like top_level_dir, package_dir & current_dir_uri?? :)
This is a fine question. top_level_dir and package_dir are both based
on the module specifically (they use the
pkg_resources.resource_filename which locates things relative to the
pythonpath).
current_dir_uri could be defined in all cases, though.
Kevin