forked from platypush/platypush
Fabio Manganiello
3bf068e0b2
setup.py won't pass any arguments to `main()`, so the default entry point should get them itself from `sys.argv`.
19 lines
436 B
Python
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"]
|