http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11123
Revision: 11123 Author: xqt Date: 2013-02-25 12:09:13 +0000 (Mon, 25 Feb 2013) Log Message: ----------- append maintenance path, add wikivoyage to wikimedia families
Modified Paths: -------------- trunk/pywikipedia/maintenance/testfamily.py
Modified: trunk/pywikipedia/maintenance/testfamily.py =================================================================== --- trunk/pywikipedia/maintenance/testfamily.py 2013-02-25 12:07:13 UTC (rev 11122) +++ trunk/pywikipedia/maintenance/testfamily.py 2013-02-25 12:09:13 UTC (rev 11123) @@ -23,7 +23,7 @@ """ # # (C) Yuri Astrakhan, 2005 -# (C) Pywikipedia bot team, 2006-2010 +# (C) Pywikipedia bot team, 2006-2013 # # Distributed under the terms of the MIT license. # @@ -31,6 +31,8 @@ #
import sys +sys.path.insert(1, '..') + import wikipedia as pywikibot import traceback
@@ -64,9 +66,9 @@ if language is None: language = mySite.lang if wikimedia: - families = ['wikipedia', 'wiktionary', 'wikiquote', 'wikisource', - 'wikibooks', 'wikinews', 'wikiversity', 'meta', 'commons', - 'mediawiki', 'species', 'incubator', 'test'] + families = ['commons', 'incubator', 'mediawiki', 'meta', 'species', + 'test', 'wikibooks', 'wikidata', 'wikinews', 'wikiquote', + 'wikisource', 'wikiversity', 'wikivoyage', 'wiktionary'] elif fam is not None: families = fam.split(',') else: