Xqt created this task.
Xqt added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  `pwb.run_python_file()` function replaces `sys.path[0]` with 
`os.path.dirname(filename)` in line 95. But the `sys.path[0]` must be also be 
in `sys.path[1]` which is done in line 210; otherwise scripts might fail (see 
T249427 <https://phabricator.wikimedia.org/T249427>). Maybe it would be enough 
to insert the file path in `run_python_file()` function.
  
  btw the code snipped mentioned above run_python_file has been moved to 
https://github.com/nedbat/coveragepy/blob/master/coverage/execfile.py

TASK DETAIL
  https://phabricator.wikimedia.org/T249449

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: valhallasw, Multichill, Aklapper, Dvorapa, Xqt, pywikibot-bugs-list, 
Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Altostratus, 
Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to