distutils and data files

Diez B. Roggisch deets at nospam.web.de
Fri Feb 22 04:45:01 EST 2008


> Not if the documentation for 2.5's got anything to say about it.  If
> it does, it's well hidden.
> 
> I think I'll kill the idea of using distutils for my program.  It
> seems like distutils was primarily designed for modules and
> extensions.

Start using setuptools and pkg_resources. Then you can use pkg_resources 
to locate a module directory, and use that to fetch data contained in there.

Diez




More information about the Python-list mailing list