2023-08-17 01:35:39 +02:00
|
|
|
import sys
|
|
|
|
|
2023-08-15 11:12:21 +02:00
|
|
|
from ._runner import ApplicationRunner
|
|
|
|
|
|
|
|
|
2023-08-17 01:35:39 +02:00
|
|
|
def main():
|
2023-08-15 11:12:21 +02:00
|
|
|
"""
|
|
|
|
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()
|
2023-08-17 01:35:39 +02:00
|
|
|
app_runner.run(*sys.argv[1:])
|
2023-08-15 11:12:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
__all__ = ["ApplicationRunner", "main"]
|