summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorAndrey Petrov <andrey.petrov@shazow.net>2011-10-08 14:10:39 -0400
committerAndrey Petrov <andrey.petrov@shazow.net>2011-10-08 14:10:39 -0400
commit31d0cc48372fc255d6ee15260cff9cc080013db6 (patch)
tree95e11f836b26f12fba25df598d903b6b113474eb /docs/conf.py
parentd6adf154bca90f14e9136236417c2fa99b1c6b4f (diff)
downloadurllib3-31d0cc48372fc255d6ee15260cff9cc080013db6.tar.gz
Doc version.
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/conf.py b/docs/conf.py
index efa08614..846b3d09 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -17,7 +17,10 @@ import sys, os
# 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.insert(0, os.path.abspath('..'))
+root_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
+sys.path.insert(0, root_path)
+
+import urllib3
# -- General configuration -----------------------------------------------------
@@ -53,7 +56,7 @@ copyright = u'2011, Andrey Petrov'
# built documents.
#
# The short X.Y version.
-version = '0.5'
+version = urllib3.__version__
# The full version, including alpha/beta/rc tags.
release = version