see https://github.com/WolfgangFahl/py-3rdparty-mediawiki/issues/61
Steps to Reproduce:
import pywikibot
Without using it and bundle application with py2app for macos without using pywikbot. See e..g https://github.com/WolfgangFahl/scan2wiki which uses mwclient by default.
Actual Results:
File "pywikibot/config2.pyc", line 400, in register_families_folder NotADirectoryError: [Errno 20] Not a directory: '/Users/wf/Documents/pyworkspace/scan2wiki/dist/scan2wiki.app/Contents/Resources/lib/python38.zip/pywikibot/families'
even if not attempt is made to actually use pywikibot.
Expected Results:
It should be possible to import pywikibot wihout using it even it no user-config or family is available. It should be possible to use pywikibot and initialize it via API e.g. there is no user-config.py and other checks no Environment variables should be necessary for configuring not use pywikibot. 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.
see https://phabricator.wikimedia.org/T270474 which is closed although it does not have the desired effect on https://github.com/WolfgangFahl/py-3rdparty-mediawiki/issues/35