Skip to content

Commit b6fd092

Browse files
authored
Merge pull request #1077 from sphinx-contrib/use-pathlib-for-imgmath-override
builder: use pathlib for internal imgmath override
2 parents 568064a + 0fbee50 commit b6fd092

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sphinxcontrib/confluencebuilder/builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ def init(self):
131131
# The imgmath extension allows a builder to override where temporary
132132
# files are build -- use this to hint to using a temporary directory
133133
# on the same partition the output directory to help prevent issues.
134-
self._imgmath_tempdir = tempfile.mkdtemp(
135-
prefix='.imgmath-', dir=self.out_dir)
134+
self._imgmath_tempdir = Path(tempfile.mkdtemp(
135+
prefix='.imgmath-', dir=self.out_dir))
136136

137137
if self.config.confluence_publish:
138138
process_ask_configs(self.config)

0 commit comments

Comments
 (0)