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 use pywikibot.
Expected Results:
It should be possible to import pywikibot even it no user-config of family 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.
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