Multichill added a comment.
We have quite a few pywikibot scripts in core (https://git.wikimedia.org/tree/pywikibot%2Fcore.git/HEAD/scripts). Some of these scripts import other scripts. That shouldn't happen. These target scripts should probably be split up in a library part and a script part:
grep "from scripts import" *.py
data_ingestion.py:from scripts import upload flickrripper.py:from scripts import upload template.py:from scripts import replace
Most notable one is upload.py
TASK DETAIL https://phabricator.wikimedia.org/T60942
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: Multichill Cc: Multichill, Aklapper, jayvdb, valhallasw, Ricordisamoa, Liuxinyu970226, pywikipedia-bugs