mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-26 07:00:14 -05:00
Consistently calculate the current file's directory
This commit is contained in:
1 parent
a6559d496b
commit
801c60a873
8 files changed
+9
-9
No files matched your search
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user