diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-06-24 17:39:27 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-06-24 17:39:27 +0100 |
commit | 75f9b014bdf0a0358c9dd573b063abcf812a50b9 (patch) | |
tree | e0a7f77e1dc1ebf709dd691719c0168bcd758dd9 | |
parent | 41dba3039f0cca7f805191d8c3c48b94d09e3145 (diff) | |
download | python-ttystatus-75f9b014bdf0a0358c9dd573b063abcf812a50b9.tar.gz |
Get version number from library.
-rw-r--r-- | doc/conf.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/conf.py b/doc/conf.py index 001b6a7..18b0e00 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -16,7 +16,8 @@ import sys, os # 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 # documentation root, use os.path.abspath to make it absolute, like shown here. -#sys.path.append(os.path.abspath('.')) +sys.path.insert(0, os.path.abspath('.')) +sys.path.insert(0, os.path.abspath('..')) # -- General configuration ----------------------------------------------------- @@ -45,9 +46,10 @@ copyright = u'2011, Lars Wirzenius' # built documents. # # The short X.Y version. -version = '0.0' +import ttystatus +version = ttystatus.__version__ # The full version, including alpha/beta/rc tags. -release = '0.0' +release = version # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. |