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: [email protected]
          Reporter: [email protected]
       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/3a1ba465c74af95e52e5312f5c5dd5f2c43c3e8b#diff-439f77fba033e329e68235a823736fc3R162)

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 on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to