[damned-lies] Restored setting working dir in update-trans command
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Restored setting working dir in update-trans command
- Date: Fri, 19 Mar 2021 07:50:35 +0000 (UTC)
commit 80f45c8c10f5c026c8917308813348cae6c0f730
Author: Claude Paroz <claude 2xlibre net>
Date: Fri Mar 19 08:50:22 2021 +0100
Restored setting working dir in update-trans command
stats/management/commands/update-trans.py | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/stats/management/commands/update-trans.py b/stats/management/commands/update-trans.py
index 5d092b08..2f92c7d0 100644
--- a/stats/management/commands/update-trans.py
+++ b/stats/management/commands/update-trans.py
@@ -1,3 +1,4 @@
+import os
import re
import shutil
import itertools
@@ -51,6 +52,7 @@ class Command(BaseCommand):
fh.write("_(u\"\"\"%s\"\"\")\n" % value)
# Run makemessages -l ll
+ os.chdir(settings.BASE_DIR)
call_command('makemessages', locale=[lang_code])
# Delete database-content.py
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]