Consistently calculate the current file's directory

This commit is contained in:
Adam Turner committed 2024-11-03 17:28:02 +00:00
1 parent a6559d496b
commit 801c60a873
8 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ In practice, you have to:
:caption: src/__init__.py
def setup(app):
package_dir = Path(__file__).parent.resolve()
package_dir = Path(__file__).resolve().parent
locale_dir = package_dir / 'locales'
app.add_message_catalog(MESSAGE_CATALOG_NAME, locale_dir)