Skip to content

Commit 7c1c487

Browse files
Fixup
1 parent 9dede66 commit 7c1c487

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python_docs_theme/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22

33
import gettext
4+
import os
45
from pathlib import Path
56

67
TYPE_CHECKING = False
@@ -16,7 +17,7 @@
1617
def setup_translations(app):
1718
translation = gettext.translation(
1819
domain="messages",
19-
localedir=str(THEME_PATH / "locales"),
20+
localedir=os.fspath(THEME_PATH / "locales"),
2021
languages=[app.config.language],
2122
fallback=True,
2223
)

0 commit comments

Comments
 (0)