summaryrefslogtreecommitdiff
path: root/sphinx/ext/pngmath.py
diff options
context:
space:
mode:
authortk0miya <i.tkomiya@gmail.com>2014-09-27 10:11:47 +0900
committertk0miya <i.tkomiya@gmail.com>2014-09-27 10:11:47 +0900
commitcc5859fcbf086bcc6a25787dc3520e444f5b7282 (patch)
tree08eb1fc6c6e9d653544146ab5b463aefd177a296 /sphinx/ext/pngmath.py
parent7984f81a5e8a9e533559ffffd2907c1d82be8292 (diff)
downloadsphinx-git-cc5859fcbf086bcc6a25787dc3520e444f5b7282.tar.gz
Add imgpath property to all builders
Diffstat (limited to 'sphinx/ext/pngmath.py')
-rw-r--r--sphinx/ext/pngmath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/ext/pngmath.py b/sphinx/ext/pngmath.py
index 27d7978fe..81a6f9d57 100644
--- a/sphinx/ext/pngmath.py
+++ b/sphinx/ext/pngmath.py
@@ -86,7 +86,7 @@ def render_math(self, math):
shasum = "%s.png" % sha1(latex.encode('utf-8')).hexdigest()
relfn = posixpath.join(self.builder.imgpath, 'math', shasum)
- outfn = path.join(self.builder.outdir, '_images', 'math', shasum)
+ outfn = path.join(self.builder.outdir, self.builder.imagedir, 'math', shasum)
if path.isfile(outfn):
depth = read_png_depth(outfn)
return relfn, depth