Mforns has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/202036

Change subject: Fix bug in wiki.txt file path
......................................................................

Fix bug in wiki.txt file path

Bug: T89251
Change-Id: I83de4a12e2c29b6532525df1a46f3e14d0d9ca04
---
M generate.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/analytics/limn-mobile-data 
refs/changes/36/202036/1

diff --git a/generate.py b/generate.py
index 3253f8b..77798a3 100644
--- a/generate.py
+++ b/generate.py
@@ -136,11 +136,12 @@
         # can be found in the config file root level. Reportupdater
         # will not interfere in generate.py execution and viceversa.
         if 'reportupdater-reports' in self.config:
+            project_path = os.path.dirname(os.path.realpath(__file__))
             reportupdater.run(
                 config=self.config,
                 sql_folder=os.path.abspath(self.folder),
                 output_folder=os.path.abspath(self.config['output']['path']),
-                wikis_path=os.path.abspath('reportupdater/wikis.txt')
+                wikis_path=os.path.join(project_path, 
'reportupdater/wikis.txt')
             )
         # End of reportupdater call.
         history = self.get_history()

-- 
To view, visit https://gerrit.wikimedia.org/r/202036
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I83de4a12e2c29b6532525df1a46f3e14d0d9ca04
Gerrit-PatchSet: 1
Gerrit-Project: analytics/limn-mobile-data
Gerrit-Branch: master
Gerrit-Owner: Mforns <mfo...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to