[Pywikipedia-bugs] [Maniphest] [Commented On] T249427: Using imagefile.touch() with pwb.py will throw pywikibot.i18n.TranslationError

2020-04-05 Thread Xqt
Xqt added a comment. In T249427#6029980 , @Dvorapa wrote: > Patch quickly merged, but I don't like the fact the first path is overridden. Is there any reason for this? Could we only add paths instead of overriding? I agree, this wa

[Pywikipedia-bugs] [Maniphest] [Commented On] T249427: Using imagefile.touch() with pwb.py will throw pywikibot.i18n.TranslationError

2020-04-05 Thread Dvorapa
Dvorapa added a comment. Patch quickly merged, but I don't like the fact the first path is overridden. Is there any reason for this? Could we only add paths instead of overriding? TASK DETAIL https://phabricator.wikimedia.org/T249427 EMAIL PREFERENCES https://phabricator.wikimedia.org/se

[Pywikipedia-bugs] [Maniphest] [Commented On] T249427: Using imagefile.touch() with pwb.py will throw pywikibot.i18n.TranslationError

2020-04-05 Thread gerritbot
gerritbot added a comment. Change 586017 **merged** by jenkins-bot: [pywikibot/core@master] [bugfix] insert absolute path to sys.path https://gerrit.wikimedia.org/r/586017 TASK DETAIL https://phabricator.wikimedia.org/T249427 EMAIL PREFERENCES https://phabricator.wikimedia.org/sett

[Pywikipedia-bugs] [Maniphest] [Commented On] T249427: Using imagefile.touch() with pwb.py will throw pywikibot.i18n.TranslationError

2020-04-05 Thread gerritbot
gerritbot added a comment. Change 586017 had a related patch set uploaded (by Xqt; owner: Xqt): [pywikibot/core@master] [bugfix] insert absolute path to sys.path https://gerrit.wikimedia.org/r/586017 TASK DETAIL https://phabricator.wikimedia.org/T249427 EMAIL PREFERENCES https://ph

[Pywikipedia-bugs] [Maniphest] [Commented On] T249427: Using imagefile.touch() with pwb.py will throw pywikibot.i18n.TranslationError

2020-04-05 Thread Xqt
Xqt added a comment. Ah, I see: `sys.path[0]` is overwritten in `pwb.py` line 95: sys.path[0] = os.path.dirname(filename) TASK DETAIL https://phabricator.wikimedia.org/T249427 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper

[Pywikipedia-bugs] [Maniphest] [Commented On] T249427: Using imagefile.touch() with pwb.py will throw pywikibot.i18n.TranslationError

2020-04-04 Thread Dvorapa
Dvorapa added a comment. Oh, I see. The script is outside Pywikibot folder! TASK DETAIL https://phabricator.wikimedia.org/T249427 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dvorapa Cc: Aklapper, pywikibot-bugs-list, Dvorapa, Xqt, Multichill,

[Pywikipedia-bugs] [Maniphest] [Commented On] T249427: Using imagefile.touch() with pwb.py will throw pywikibot.i18n.TranslationError

2020-04-04 Thread Dvorapa
Dvorapa added a comment. Cannot reproduce (also latest version of pywikibot and i18n): $ python pwb.py shell >>> site = pywikibot.Site('commons', 'commons') >>> imagefile = pywikibot.FilePage(site, title='File:Jan_Steen_-_The_Drawing_Lesson_-_83.PB.388_-_J._Paul_Getty_Museum.jpg