Xqt has uploaded a new change for review.
https://gerrit.wikimedia.org/r/270279
Change subject: Search for scripts in maintenance folder too.
......................................................................
Search for scripts in maintenance folder too.
- with I3143241f64e scripts can be found in an archive folder but mainenance
scripts must be startet with preleading "maintenance/"
- join paths in the right way; otherwise we could have mixed separators
on windows os.
Change-Id: I02ed7a5e533eaa33c32cbd77a2c2bdcba567413c
---
M pwb.py
1 file changed, 5 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/79/270279/1
diff --git a/pwb.py b/pwb.py
index a630c5f..e2ed051 100755
--- a/pwb.py
+++ b/pwb.py
@@ -211,7 +211,11 @@
file_package = 'scripts'
if not os.path.exists(testpath):
testpath = os.path.join(
- os.path.split(__file__)[0], 'scripts/archive', filename)
+ os.path.split(__file__)[0], 'scripts', 'maintenance',
filename)
+ file_package = 'scripts.maintenance'
+ if not os.path.exists(testpath):
+ testpath = os.path.join(
+ os.path.split(__file__)[0], 'scripts', 'archive', filename)
file_package = 'scripts.archive'
if os.path.exists(testpath):
--
To view, visit https://gerrit.wikimedia.org/r/270279
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I02ed7a5e533eaa33c32cbd77a2c2bdcba567413c
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits