e.g. py -3 pwb.py -lang -family -simulate basics -foo -bar -baz gives ['basics', '-foo', '-bar', '-baz'] as arguments for basic.py whereas
py -3 pwb.py basics -foo -bar -baz gives ['-foo', '-bar', '-baz'] as expected.
Description
Description
Details
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | BUG REPORT | Xqt | T296204 All script_tests fails at appveyor | ||
Resolved | BUG REPORT | Xqt | T254435 using pwb.py wrapper with global args before the script adds the script name to the scripts args list |
Event Timeline
Comment Actions
Change 602298 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [bugfix] Use the scripts args executing the script
Comment Actions
This also leads tests to fail if a global argument is passed to pwb wrapper
https://ci.appveyor.com/project/Ladsgroup/pywikibot-g4xqx/builds/41684969/job/tjwde82anclo8n7v
Comment Actions
Change 742216 had a related patch set uploaded (by Xqt; author: Xqt):
[pywikibot/core@master] [tests] Test whether pywikibot.argvu is not contaminated by global args
Comment Actions
Change 742216 merged by jenkins-bot:
[pywikibot/core@master] [tests] Test whether pywikibot.argvu is not contaminated by global args
Comment Actions
Change 602298 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] Use the scripts args executing a script with pwb.py