Re: [Distutils] Using `pkg_resources` without importing the module
10 Jul
2011
10 Jul
'11
10:33 p.m.
At 09:25 PM 7/10/2011 +0200, cool-RR wrote:
Hello,
I want to use `pkg_resources` to retrieve an image file from a Python package. But I want to do this without importing the actual package. Is this possible using `pkg_resources`, or does it import the package?
It imports the package, as it needs to know what loader object was used, to know whether it will be reading from a zipfile or whatever else.
4636
Age (days ago)
4636
Last active (days ago)
1 comments
2 participants
participants (2)
-
cool-RR
-
P.J. Eby