How to refer to data files without hardcoding paths?

Matthew Wilson matt at tplus1.com
Tue Sep 8 22:53:57 EDT 2009


On Mon 07 Sep 2009 10:57:01 PM EDT, Gabriel Genellina wrote:
> I prefer
> to use pkgutil.get_data(packagename, resourcename) because it can handle
> those cases too.

I didn't know about pkgutil until.  I thought I had to use setuptools to
do that kind of stuff.  Thanks!

Matt




More information about the Python-list mailing list