This repository has been archived on 2022-07-14. You can view files and clone it, but cannot push or open issues or pull requests.
sh_gismo/src/gismo/main.py

19 lines
418 B
Python
Raw Normal View History

2021-11-15 00:52:49 +01:00
import asyncio
from cpl_core.application import ApplicationBuilder
2021-11-15 18:09:34 +01:00
from application import Application
from startup import Startup
2021-11-15 00:52:49 +01:00
async def main():
app_builder = ApplicationBuilder(Application)
app_builder.use_startup(Startup)
app: Application = await app_builder.build_async()
await app.run_async()
if __name__ == '__main__':
ml = asyncio.get_event_loop()
ml.run_until_complete(main())