def init_agent(self):
# Build list of async methods, to be used from the tornado thread
self.async_proxy = AsyncProxy(self)
self.dstore = DescriptorStore(self, self.async_proxy)
self.ioloop = tornado.ioloop.IOLoop.instance()
self.gui = Application(self.dstore, self.async_proxy, self.ioloop,
autoreload=self.config['autoreload'])
self.gui.listen(self.config['port'])
t = threading.Thread(target=self.ioloop.start)
t.daemon = True
t.start()
评论列表
文章目录