On 3/15/07, Nathan R. Yergler <[EMAIL PROTECTED]> wrote:
> I have a situation where I want to get the version of an egg that's
> installed.  I figured out the following, but wanted to know if I'm
> missing something obvious that's easier::
>

Assuming you just have one version installed:

>>> from pkg_resources import Environment
>>> e = Environment()
>>> print e["cctagutils"][0].version
_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to