Skip to content

Comments

builder: use pathlib for internal imgmath override#1077

Merged
jdknight merged 1 commit intomainfrom
use-pathlib-for-imgmath-override
Jan 30, 2025
Merged

builder: use pathlib for internal imgmath override#1077
jdknight merged 1 commit intomainfrom
use-pathlib-for-imgmath-override

Conversation

@jdknight
Copy link
Member

Updating the internal overwrite of the imgmath temporary directory to use the pathlib module. Upstream version of Sphinx has updated its implementation to use pathlib, and using a str causes issues when running the imgmath extension.

Using Path should be fine for existing/older versions of Sphinx, as its value used with os.path.join handles Path objects.

Updating the internal overwrite of the imgmath temporary directory to
use the pathlib module. Upstream version of Sphinx has updated its
implementation to use pathlib, and using a str causes issues when
running the imgmath extension.

Using `Path` should be fine for existing/older versions of Sphinx, as
its value used with `os.path.join` handles `Path` objects.

Signed-off-by: James Knight <git@jdknight.me>
@jdknight jdknight merged commit b6fd092 into main Jan 30, 2025
29 checks passed
@jdknight jdknight deleted the use-pathlib-for-imgmath-override branch January 30, 2025 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant