Closed wrought closed 10 years ago
Normall this goes in the ~/.pywikibot/ folder which is outside of the repo. But i'll put it in the main repo for now.
The content is rather simple
# -*- coding: utf-8 -*-
family = 'wikipedia'
mylang = 'en'
usernames['wikipedia']['en'] = u'recitation-bot'
usernames['wikisource']['en'] = u'recitation-bot'
usernames['commons']['commons'] = u'recitation-bot'
Max Klein ‽ http://notconfusing.com/
On Sat, Jun 21, 2014 at 8:32 PM, Matt Senate notifications@github.com wrote:
Need to provide pywikibot config for testing purposes
=========================================================== ERRORS ============================================================ ___ ERROR collecting tests/test_journal_article.py ____ tests/test_journal_article.py:1: in
from recitationbot import journal_article recitationbot/journal_article.py:11: in
import pywikibot env/local/lib/python2.7/site-packages/pywikibot-2.0b1-py2.7.egg/pywikibot/init.py:30: in from pywikibot import config2 as config env/local/lib/python2.7/site-packages/pywikibot-2.0b1-py2.7.egg/pywikibot/config2.py:162: in _base_dir = _get_base_dir() env/local/lib/python2.7/site-packages/pywikibot-2.0b1-py2.7.egg/pywikibot/config2.py:158: in _get_base_dir raise RuntimeError(exc_text) E RuntimeError: No user-config.py found in directory '/home/wrought/.pywikibot'. E Please check that user-config.py is stored in the correct location. E Directory where user-config.py is searched is determined as follows: E E Return the directory in which user-specific information is stored. E E This is determined in the following order - E 1. If the script was called with a -dir: argument, use the directory E provided in this argument E 2. If the user has a PYWIKIBOT2_DIR environment variable, use the value E of it E 3. Use (and if necessary create) a 'pywikibot' folder under E 'Application Data' or 'AppData\Roaming' (Windows) or E '.pywikibot' directory (Unix and similar) under the user's home E directory. — Reply to this email directly or view it on GitHub https://github.com/wpoa/recitation-bot/issues/8.
Need to provide pywikibot config for testing purposes