From a3be0184291372a336aa87d8a1f90c99eb1b4d91 Mon Sep 17 00:00:00 2001 From: Wera Barinova Date: Mon, 9 Dec 2024 19:41:40 +0300 Subject: [PATCH] Update poutil.py # Otherwise It does not show application specific po files abs_project_path = os.path.normpath(os.path.abspath(os.path.dirname(os.path.dirname(project.__file__))) ) --- rosetta/poutil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rosetta/poutil.py b/rosetta/poutil.py index 011e4b7..28dfc51 100644 --- a/rosetta/poutil.py +++ b/rosetta/poutil.py @@ -49,8 +49,8 @@ def find_pos(lang, project_apps=True, django_apps=False, third_party_apps=False) parts = os.environ.get(ENVIRONMENT_VARIABLE).split(".") project = __import__(parts[0], {}, {}, []) abs_project_path = os.path.normpath( - os.path.abspath(os.path.dirname(project.__file__)) - ) + os.path.abspath(os.path.dirname(os.path.dirname(project.__file__))) + ) # otherwise it does not see the application locale files if project_apps: if os.path.exists( os.path.abspath(os.path.join(os.path.dirname(project.__file__), "locale"))