Skip to content

Instantly share code, notes, and snippets.

@jldupont
Created January 20, 2012 01:35
Show Gist options
  • Select an option

  • Save jldupont/1644429 to your computer and use it in GitHub Desktop.

Select an option

Save jldupont/1644429 to your computer and use it in GitHub Desktop.
Python: determining package version # at runtime
>>> import pkg_resources
>>> pkg_resources.get_distribution("blogofile").version
'0.7.1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment