On Mon, Oct 1, 2012 at 10:46 AM, Barry Warsaw <[email protected]> wrote: > On Sep 30, 2012, at 10:00 PM, Daniel Holth wrote: > >>resource_filename is very popular. I would have thought >>resource_stream would be more popular. Unless your package is zipped >>resource_filename is trivial to implement. > > I've used declare_namespace() once or twice. > > I use resource_filename(), resource_string(), resource_stream(), and > resource_listdir() quite a bit.
declare_namespace() is special because we could probably rewrite it at install time (in Python 3.3, by deleting __init__.py) or by calling pkgutil. _______________________________________________ Distutils-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/distutils-sig
