http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10879
Revision: 10879 Author: drtrigon Date: 2013-01-10 17:09:15 +0000 (Thu, 10 Jan 2013) Log Message: ----------- bug fix; of course we have to use 'pywikibot.config.datafilepath'
Modified Paths: -------------- trunk/pywikipedia/subster.py
Modified: trunk/pywikipedia/subster.py =================================================================== --- trunk/pywikipedia/subster.py 2013-01-10 16:33:29 UTC (rev 10878) +++ trunk/pywikipedia/subster.py 2013-01-10 17:09:15 UTC (rev 10879) @@ -335,7 +335,8 @@ mbox.close() elif (param['url'][:8] == u'local://'): # DRTRIGON-131 if (param['url'][8:] == u'cache/state_bots'): - d = shelve.open('cache/state_bots') # filename hard-coded + # filename hard-coded + d = shelve.open(pywikibot.config.datafilepath('cache', 'state_bots')) external_buffer = pprint.pformat(d) d.close() else:
pywikipedia-svn@lists.wikimedia.org