https://bugzilla.wikimedia.org/show_bug.cgi?id=72918
Bug ID: 72918 Summary: pwb.py user-config.py search path incorrect Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: valhallasw@arctus.nl Web browser: --- Mobile Platform: ---
The search path was:
PYWIKIBOT2_DIR, (pwb directory)
and is now
PYWIKIBOT2_DIR, ., ~/.pywikibot,
(changed in https://github.com/wikimedia/pywikibot-core/commit/3a1ba465c74af95e52e5312f5...)
which is the same if we are in the pwb directory, but not if this is not the case! This is e.g. often the case with jsub commands such as
jsub python /data/project/some/path/pwb.py scriptname
which is expected to use the user-config in /data/project/some/path, not the user-config in /data/project/.pywikibot/
The search order should probably be adapted to PYWIKIBOT2_DIR, ., pwb dir, ~/.pywikibot.