grzegorz/main.py

16 lines
346 B
Python
Raw Normal View History

#!/usr/bin/env python3
import asyncio
import grzegorz
2018-03-04 18:23:45 +01:00
import config
async def grzegorz_splash():
resp = await grzegorz.mpv_control.loadfile('grzegorz/grzegorz/res/logo.jpg')
#print(resp)
2018-03-04 18:23:45 +01:00
loop, app = grzegorz.make_sanic_app(
host = config.address,
port = config.port
)
asyncio.ensure_future(grzegorz_splash())
loop.run_forever()