Skip to content

Commit

Permalink
Merge pull request #1077 from sphinx-contrib/use-pathlib-for-imgmath-…
Browse files Browse the repository at this point in the history
…override

builder: use pathlib for internal imgmath override
  • Loading branch information
jdknight authored Jan 30, 2025
2 parents 568064a + 0fbee50 commit b6fd092
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sphinxcontrib/confluencebuilder/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ def init(self):
# The imgmath extension allows a builder to override where temporary
# files are build -- use this to hint to using a temporary directory
# on the same partition the output directory to help prevent issues.
self._imgmath_tempdir = tempfile.mkdtemp(
prefix='.imgmath-', dir=self.out_dir)
self._imgmath_tempdir = Path(tempfile.mkdtemp(
prefix='.imgmath-', dir=self.out_dir))

if self.config.confluence_publish:
process_ask_configs(self.config)
Expand Down

0 comments on commit b6fd092

Please sign in to comment.