2019-03-01 19:41:40 +00:00
|
|
|
import asyncio
|
|
|
|
import sys
|
2019-05-29 21:44:13 +00:00
|
|
|
import logging
|
2019-05-16 15:34:16 +00:00
|
|
|
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)
|
|
|
|
|
2019-05-29 21:44:13 +00:00
|
|
|
logger = logging.getLogger('houdini')
|
2019-03-01 19:41:40 +00:00
|
|
|
factory_instance = HoudiniFactory(server='Login')
|
2019-05-29 21:44:13 +00:00
|
|
|
try:
|
|
|
|
asyncio.run(factory_instance.start())
|
|
|
|
except KeyboardInterrupt:
|
|
|
|
logger.info('Shutting down...')
|