How to refer to data files without hardcoding paths?

Matthew Wilson matt at
Wed Sep 9 04:53:57 CEST 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!


More information about the Python-list mailing list