[Distutils] unpacking files from and egg only for testing

Alexander Schmolck a.schmolck at gmx.net
Sun May 13 23:00:23 CEST 2007

"Phillip J. Eby" <pje at telecommunity.com> writes:

> Use pkg_resources.resource_filename() - it will give you a real filename for
> the resource (unpacked to a temporary directory if necessary).  If you are
> running "setup.py test", on the other hand, it will return the path to the
> original source file. 

Great exactly what I was looking for -- thanks.



More information about the Distutils-SIG mailing list