Jump to content
MediaWiki

Manual:Pywikibot/pwb.py

From mediawiki.org
Wikimedia Git repository has this file: pwb.py
Pywikibot logo
Pywikibot scripts
  • Configuration and scripts
  • Uses
More... »
v · d · e

pwb.py is a wrapper script and script entry point of Pywikibot .

Usage

[edit ]

Run scripts using:

$ pythonpwb.py<pwboptions><name_of_script><options>

and it will use the package directory to store all user files, fix up search paths so the package does not need to be installed, etc.

Currently <pwb options> are global options. This can be used for tests to set the default site like (see T216825):

$ pythonpwb.py-lang:debot_tests-v

As a site package you may call the wrapper script as:

$ pwb<pwboptions><name_of_script><options>

When running on a local Linux platform, you might define the pwb command as:

alias pwb='/users/username/pywikibot/pwb.py'

AltStyle によって変換されたページ (->オリジナル) /