grzegorz/main.py

16 lines
346 B
Python
Executable File

#!/usr/bin/env python3
import asyncio
import grzegorz
import config
async def grzegorz_splash():
resp = await grzegorz.mpv_control.loadfile('grzegorz/grzegorz/res/logo.jpg')
#print(resp)
loop, app = grzegorz.make_sanic_app(
host = config.address,
port = config.port
)
asyncio.ensure_future(grzegorz_splash())
loop.run_forever()