summaryrefslogtreecommitdiff
path: root/sphinx/ext/pngmath.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-09-03 16:39:30 +0200
committerGeorg Brandl <georg@python.org>2014-09-03 16:39:30 +0200
commitfc680f1e25959ccc0e210dd6d5070dca360208c7 (patch)
tree4a5e542712eb5e38e0601a337e4b64ad5f6a91db /sphinx/ext/pngmath.py
parentb6594d18d1923c6f9858b3adce9fccf883fe8023 (diff)
downloadsphinx-git-fc680f1e25959ccc0e210dd6d5070dca360208c7.tar.gz
Return version from setup() for all sphinx.ext extensions.
Diffstat (limited to 'sphinx/ext/pngmath.py')
-rw-r--r--sphinx/ext/pngmath.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/ext/pngmath.py b/sphinx/ext/pngmath.py
index 7b1af9705..ee108d166 100644
--- a/sphinx/ext/pngmath.py
+++ b/sphinx/ext/pngmath.py
@@ -21,6 +21,7 @@ from hashlib import sha1
from six import text_type
from docutils import nodes
+import sphinx
from sphinx.errors import SphinxError
from sphinx.util.png import read_png_depth, write_png_depth
from sphinx.util.osutil import ensuredir, ENOENT
@@ -245,3 +246,4 @@ def setup(app):
app.add_config_value('pngmath_latex_preamble', '', 'html')
app.add_config_value('pngmath_add_tooltips', True, 'html')
app.connect('build-finished', cleanup_tempdir)
+ return sphinx.__version__