[Distutils] Installed Packages..
david.lyon at preisshare.net
Fri May 1 14:50:17 CEST 2009
On Thu, 30 Apr 2009 16:48:32 +0200, Tarek Ziadé wrote:
>> 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
or is this just an issue with pkg_resources ?
Are these failures of the python subsystem?
I would love to know...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Distutils-SIG