Phillip J. Eby wrote:
> At 05:27 PM 11/21/2005 -0800, Rob Cakebread wrote:
> 
>>I'm using pkg_resources.Environment() to get a list of all
>>eggs.
>>
>>Besides making a list of activated eggs with
>>pkg_resources.working_set
>>and comparing it with pkg_resources.Environment, is there
>>a way to check if an individual egg is activated?
> 
> 
> if someDist in working_set:
>     # a distribution w/same location/version/pyversion/etc.
>     # is in there

Relatedly, how do I get all the distributions, not just the active ones? 
  I added a command to Paste Script for display information about entry 
points, but it only gets the active distributions.


-- 
Ian Bicking  /  [EMAIL PROTECTED]  /  http://blog.ianbicking.org
_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to