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(a)lists.wikimedia.org
Reporter: valhallasw(a)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/3a1ba465c74af95e52e5312f…)
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.
--
You are receiving this mail because:
You are the assignee for the bug.