Seppl2013 created this task.
Seppl2013 added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Danmichaelo,
Aklapper.
TASK DESCRIPTION
**Current behavior:**
When using pywikibot in an import statement the check for user-config.py is
immediately done and throw a runtime error even if pywikibot is never called.
It is explained that an Environment variable needs to be set to avoid this
behavior.
Set PYWIKIBOT_NO_USER_CONFIG=1 to disable loading user-config.py
**Expected behavior:**
- It should be possible to import pywikibot even it no user-config is
available.
- It should be possible to use pywikibot and disable the user-config.py check
via API (not via Environment variable!)
- Reasoning**
When deploying a library like
https://github.com/WolfgangFahl/py-3rdparty-mediawiki and make it available for
the general public that has a choice of using either mwclient or pywikibot as
the API channel to MediaWiki it does not make sens to throw an error by
pywikibot when people choose mwclient. In fact this makes offering pywikibot as
a library impossible in the long run.
Please fix this issue so that py-3rdparty-mediawiki will be able to offer a
pywikibot. With the current state of affairs I'd have to remove the pywikibot
support for the inconvenience it introduces for users.
TASK DETAIL
https://phabricator.wikimedia.org/T270474
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Seppl2013
Cc: Aklapper, Danmichaelo, Seppl2013, pywikibot-bugs-list, JohnsonLee01, SHEKH,
Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89,
Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs