[damned-lies] Handle paths in extra_its_dirs handling



commit 0b9ad6086d2b75469f26b1e17ebb56ca51efa290
Author: Claude Paroz <claude 2xlibre net>
Date:   Sun Mar 25 18:41:59 2018 +0200

    Handle paths in extra_its_dirs handling

 stats/models.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/stats/models.py b/stats/models.py
index 4ece894..be6e9b3 100644
--- a/stats/models.py
+++ b/stats/models.py
@@ -885,7 +885,7 @@ class Domain(models.Model):
         env = {'GETTEXTDATADIRS': os.path.dirname(utils.ITS_DATA_DIR)}
         if self.extra_its_dirs:
             env['GETTEXTDATADIRS'] = ':'.join(
-                [env['GETTEXTDATADIRS']] + [os.path.join(branch.co_path(), path)
+                [env['GETTEXTDATADIRS']] + [str(branch.co_path() / path)
                                             for path in self.extra_its_dirs.split(':')]
             )
         # Parse and use content from: "XGETTEXT_OPTIONS = --keyword=_ --keyword=N_"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]