[Distutils] pkg_resources: .egg-info files

Ian Bicking ianb at imagescape.com
Fri Jul 29 19:17:25 CEST 2005


What's the correct way to get access to files in the .egg-info directory 
(where I'm putting some custom configuration files)?  I got this far:

   req = pkg_resources.Requirement('ProjectName')
   pkg_resources.resource_string(req, 'filename')

But that gives me access to the base dir of the project, not the 
.egg-info dir.



More information about the Distutils-SIG mailing list