platypush/platypush/runner/__init__.py
Fabio Manganiello 3bf068e0b2
The __main__ function should take no arguments.
setup.py won't pass any arguments to `main()`, so the default entry
point should get them itself from `sys.argv`.
2023-08-17 01:35:39 +02:00

19 lines
436 B
Python

import sys
from ._runner import ApplicationRunner
def main():
"""
Main application entry point.
This is usually the entry point that you want to use to start your
application, rather than :meth:`platypush.app.main`, as this entry point
wraps the main application in a controllable process.
"""
app_runner = ApplicationRunner()
app_runner.run(*sys.argv[1:])
__all__ = ["ApplicationRunner", "main"]