diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-02-27 17:20:40 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-02-27 17:20:40 +0300 |
commit | 49bd372142899093e2340556ffbe1f927127cafb (patch) | |
tree | 5a4dc9ba1f6808f5cdf5602c07f8c9f7c25f0172 /sphinx/ext/graphviz.py | |
parent | 836d65f04c0abf328ee312125a2fd7bc2b55e09c (diff) |
Fix #6028: graphviz: Ensure the graphviz filenames are reproducible
Diffstat (limited to 'sphinx/ext/graphviz.py')
-rw-r--r-- | sphinx/ext/graphviz.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sphinx/ext/graphviz.py b/sphinx/ext/graphviz.py index b62d80254..2971f4016 100644 --- a/sphinx/ext/graphviz.py +++ b/sphinx/ext/graphviz.py @@ -194,9 +194,7 @@ class GraphvizSimple(SphinxDirective): node = graphviz() node['code'] = '%s %s {\n%s\n}\n' % \ (self.name, self.arguments[0], '\n'.join(self.content)) - node['options'] = { - 'docname': path.splitext(self.state.document.current_source)[0], - } + node['options'] = {'docname': self.env.docname} if 'graphviz_dot' in self.options: node['options']['graphviz_dot'] = self.options['graphviz_dot'] if 'alt' in self.options: |