forked from platypush/platypush
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`.
This commit is contained in:
parent
a52de0e086
commit
3bf068e0b2
2 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,3 @@
|
|||
import sys
|
||||
|
||||
from platypush.runner import main
|
||||
|
||||
main(*sys.argv[1:])
|
||||
main()
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
import sys
|
||||
|
||||
from ._runner import ApplicationRunner
|
||||
|
||||
|
||||
def main(*args: str):
|
||||
def main():
|
||||
"""
|
||||
Main application entry point.
|
||||
|
||||
|
@ -11,7 +13,7 @@ def main(*args: str):
|
|||
"""
|
||||
|
||||
app_runner = ApplicationRunner()
|
||||
app_runner.run(*args)
|
||||
app_runner.run(*sys.argv[1:])
|
||||
|
||||
|
||||
__all__ = ["ApplicationRunner", "main"]
|
||||
|
|
Loading…
Reference in a new issue