#!/usr/bin/env python3"""pwb caller script to invoke the :mod:`pywikibot.scripts.wrapper` script... versionadded:: 8.0"""## (C) Pywikibot team, 2022## Distributed under the terms of the MIT license.#importrunpyimportsysVERSIONS_REQUIRED_MESSAGE="""Pywikibot is not available on:{version}This version of Pywikibot only supports Python 3.7+."""
[docs]defpython_is_supported():"""Check that Python is supported."""returnsys.version_info[:3]>=(3,7)
ifnotpython_is_supported():# pragma: no coversys.exit(VERSIONS_REQUIRED_MESSAGE.format(version=sys.version))
[docs]defmain():"""Entry point for :func:`tests.utils.execute_pwb`."""frompathlibimportPathpath=Path(__file__).parent/'pywikibot'/'scripts'/'wrapper.py'runpy.run_path(str(path),run_name='__main__')