jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/846973 )
Change subject: [IMPR] Keep Python 2.7 compatibility with pwb.py caller script ......................................................................
[IMPR] Keep Python 2.7 compatibility with pwb.py caller script
Change-Id: I9b8c12a57b12bc92010b4c0c49fb49357276d45c --- M pwb.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pwb.py b/pwb.py index e515776..7c061a1 100644 --- a/pwb.py +++ b/pwb.py @@ -7,9 +7,7 @@ # # Distributed under the terms of the MIT license. # -import runpy import sys -from pathlib import Path
VERSIONS_REQUIRED_MESSAGE = """ Pywikibot is not available on: @@ -30,6 +28,8 @@
def main(): """Entry point for :func:`tests.utils.execute_pwb`.""" + import runpy + from pathlib import Path path = Path().resolve() / 'pywikibot' / 'scripts' / 'wrapper.py' runpy.run_path(str(path), run_name='__main__')