Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How get blessings version? #118

Open
ocastilloreyes opened this issue Mar 2, 2016 · 4 comments
Open

How get blessings version? #118

ocastilloreyes opened this issue Mar 2, 2016 · 4 comments

Comments

@ocastilloreyes
Copy link

I need get the blessings version but I have the following error:

import blessings
blessings.version
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'version'

Thank you

@Sbelletier
Copy link

Sbelletier commented Sep 2, 2016

try blessings.__version__
it's a python convention

@erikrose
Copy link
Owner

erikrose commented Sep 7, 2016

There isn't a convenient way right now, but let's leave this open as a reminder to add one in a future release.

@jquast
Copy link
Collaborator

jquast commented Sep 14, 2016

import pkg_resources
pkg_resources.get_distribution("blessings").version

@erikrose
Copy link
Owner

Yes, that should work if blessings was installed by pip or maybe easy_install. Thanks, Jeff!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants