This website requires JavaScript.
Explore
Help
Sign in
revil-O
/
platypush
Watch
1
Star
0
Fork
You've already forked platypush
0
forked from
platypush/platypush
Code
Pull requests
Activity
f7fe844296
platypush
/
platypush
/
__main__.py
4 lines
42 B
Python
Raw
Normal View
History
Unescape
Escape
Large refactor + stability fixes for the external process control logic.
2023-08-15 11:12:21 +02:00
from
platypush
.
runner
import
main
Refactored structure of main application and startup scripts. The main application class has been moved from __init__ to the app module. __init__ will contain instead the relevant global variables and the modules and objects exposed to external integrations - such as `get_plugin` and `get_backend`, or the `main` itself. This will make future integrations much easier - the global __init__ doesn't contain any business logic now, it can import anything without fearing circular dependencies, and it can limit its exposed objects to those that we want to expose to 3rd-party integrations and scripts. It will also make it easier to extend the main entry point with additional logic - such as a supervisor or an embedded Redis server.
2023-07-23 23:01:15 +02:00
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
main
(
)
Copy permalink