houdini/bootstrap.py

17 lines
446 B
Python
Raw Normal View History

2019-03-01 19:41:40 +00:00
import asyncio
import sys
import logging
from houdini.houdini import HoudiniFactory
2019-03-01 19:41:40 +00:00
if __name__ == '__main__':
if sys.platform == 'win32':
loop = asyncio.ProactorEventLoop()
asyncio.set_event_loop(loop)
logger = logging.getLogger('houdini')
2019-03-01 19:41:40 +00:00
factory_instance = HoudiniFactory(server='Login')
try:
asyncio.run(factory_instance.start())
except KeyboardInterrupt:
logger.info('Shutting down...')