Page MenuHomePhabricator

Restructure pywikibot scripts to not import other pywikibot scripts
Closed, DuplicatePublic

Description

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

Event Timeline

Multichill raised the priority of this task from to Needs Triage.
Multichill updated the task description. (Show Details)
Multichill added a project: Pywikibot.
Multichill added a subscriber: Multichill.
Restricted Application added subscribers: Aklapper, Unknown Object (MLST). · View Herald TranscriptFeb 13 2015, 9:34 PM

This might be a dupe. If you find the other, please merge ;-)