jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/740340 )
Change subject: [bugfix] Don't call check_modules() as a site package ......................................................................
[bugfix] Don't call check_modules() as a site package
Change-Id: I6b09fd146f1a06d5b4c8b31b1a39bc100a1b7042 --- M pwb.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pwb.py b/pwb.py index 321def5..8c5da9f 100755 --- a/pwb.py +++ b/pwb.py @@ -439,7 +439,7 @@
help_option = any(arg.startswith('-help:') or arg == '-help' for arg in script_args) - if check_modules(filename) or help_option: + if site_package or check_modules(filename) or help_option: run_python_file(filename, [filename] + script_args, [Path(filename).stem] + argvu[1:],
pywikibot-commits@lists.wikimedia.org