diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2010-01-28 20:30:18 +0100 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2010-01-28 20:30:18 +0100 |
commit | fd009339e153f5475a84af9260240d56df31fbde (patch) | |
tree | a895abc73014a6ac31e05f014be18499cfdae213 | |
parent | 3c06a6c2118614671a0ef96c995f8a47513e6e9d (diff) | |
download | pyexiv2-fd009339e153f5475a84af9260240d56df31fbde.tar.gz |
Get the version of pyexiv2 at runtime.
-rw-r--r-- | doc/conf.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/conf.py b/doc/conf.py index 8f3d753..7e77a72 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -12,6 +12,7 @@ # serve to show the default. import sys, os +import pyexiv2 # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the @@ -45,9 +46,9 @@ copyright = u'2010, Olivier Tilloy' # built documents. # # The short X.Y version. -version = '0.2' +version = pyexiv2._make_version(pyexiv2.version_info[:2]) # The full version, including alpha/beta/rc tags. -release = '0.2.0' +release = pyexiv2.__version__ # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. |