---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-1-e0bee3c78364> in <module>()
----> 1 import pywikibot
/srv/pwb/lib/python3.4/site-packages/pywikibot/__init__.py in <module>()
35 )
36
---> 37 from pywikibot import config2 as config
38
39 from pywikibot.bot import (
/srv/pwb/lib/python3.4/site-packages/pywikibot/config2.py in <module>()
336
337 _get_base_dir = get_base_dir # for backward compatibility
--> 338 _base_dir = get_base_dir()
339 # Save base_dir for use by other modules
340 base_dir = _base_dir
/srv/pwb/lib/python3.4/site-packages/pywikibot/config2.py in get_base_dir(test_directory)
331 exc_text += " Directory where user-config.py is searched is determined as follows:\n\n"
332 exc_text += " " + get_base_dir.__doc__
--> 333 raise RuntimeError(exc_text)
334
335 return base_dir
RuntimeError: No user-config.py found in directory '/home/paws'.
Please check that user-config.py is stored in the correct location.
Directory where user-config.py is searched is determined as follows:
Return the directory in which user-specific information is stored.
This is determined in the following order:
1. If the script was called with a -dir: argument, use the directory
provided in this argument.
2. If the user has a PYWIKIBOT2_DIR environment variable, use the value
of it.
3. If user-config is present in current directory, use the current
directory.
4. If user-config is present in pwb.py directory, use that directory
5. Use (and if necessary create) a 'pywikibot' folder under
'Application Data' or 'AppData\Roaming' (Windows) or
'.pywikibot' directory (Unix and similar) under the user's home
directory.
Set PYWIKIBOT2_NO_USER_CONFIG=1 to disable loading user-config.py
@param test_directory: Assume that a user config file exists in this
directory. Used to test whether placing a user config file in this
directory will cause it to be selected as the base directory.
@type test_directory: str or None
@rtype: unicode