def __init__(self, fn):
self.cfg = json.load(open("target.json"))
pprint.pprint(self.cfg)
self.tasks = {
"active":{},
"finished":{}
}
self.devices = {}
# launch proceses and go into event loop
controller.Controller.__init__(self, self.cfg, dh_worker.Worker, self.cfg["devices"])
评论列表
文章目录