Gallaecio added a comment.
I ended up fixing it like this:
diff --git a/pywikibot/config2.py b/pywikibot/config2.py index e7df241..72e6474 100644 --- a/pywikibot/config2.py +++ b/pywikibot/config2.py @@ -819,7 +819,11 @@ for _filename in _fns: _fileuid = _filestatus[4] if sys.platform == 'win32' or _fileuid in [os.getuid(), 0]: if sys.platform == 'win32' or _filemode & 0o02 == 0: - exec(compile(open(_filename).read(), _filename, 'exec'), _uc) + _uc_tmp = globals() + exec(compile(open(_filename).read(), _filename, 'exec'), + _uc_tmp) + for key in _uc: + _uc[key] = _uc_tmp[key] else: print("WARNING: Skipped '%(fn)s': writeable by others." % {'fn': _filename})
However, I am going to test the linked change and use that if it works, which it probably will.
TASK DETAIL https://phabricator.wikimedia.org/T78777
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb, Gallaecio Cc: Aklapper, Gallaecio, XZise, jayvdb, pywikipedia-bugs