Hi Tarek, On Thu, 30 Apr 2009 16:48:32 +0200, Tarek Ziadé wrote:
--code-------
import pkg_resources
ws = pkg_resources.WorkingSet()
for i in ws: s = str(i) print s
--end code--- ..
No, you just have a list of relative paths to installed package there that's it. It seems you are right... But ... when I check more closely .. I see that the above code doesn't really display all the installed packages in the site-lib directory. There are some directories in there that don't get included in the results. I would love to know why. So I am realising that the above code doesn't give the right answers. I thought if programmers used distutils and so forth everything would work "properly". or is this just an issue with pkg_resources ? Are these failures of the python subsystem? I would love to know... David