Lokal_Profil added a comment.
A quick and dirty solution would be to have readPassword() do a os.cwd to config.base_dir before trying to open the file and then os.cwd back before exiting.TASK DETAILhttps://phabricator.wikimedia.org/T139749EMAIL
Lokal_Profil created this task.Lokal_Profil added a project: Pywikibot-core.Herald added subscribers: pywikibot-bugs-list, Zppix, Aklapper.
TASK DESCRIPTIONWhen running a script with the flag -dir: it correctly finds the user-config.py file in that directory.
If you have specified password_file =
DrTrigon edited the task description. (Show Details)
EDIT DETAILS...[ [x] Categorize based on metadata: in progress, needs to output categorization hints to console
[ [x] Graphics detection code of catimages implemented and improved but not tested on a mixed/random set yet... [ [x]