Beispiel #1
0
 def __init__(self):
     self.mailHelper = mailHelper()
     self.configReader = configReader(self.CONFIGPATH)
     commandDict = self.configReader.getDict(self.KEY_COMMAND)
     openDict = self.configReader.getDict(self.KEY_OPEN)
     self.timeLimit = int(self.configReader.readConfig(self.KEY_BOSS, self.KEY_TIMELIMIT))
     self.excutor = executor(commandDict, openDict)
     self.toRun()
Beispiel #2
0
 def __init__(self):
     self.mailHelper = mailHelper()
     self.configReader = configReader(self.CONFIGPATH)
     commandDict = self.configReader.getDict(self.KEY_COMMAND)
     openDict = self.configReader.getDict(self.KEY_OPEN)
     self.timeLimit = int(self.configReader.readConfig(self.KEY_BOSS, self.KEY_TIMELIMIT))
     self.excutor = executor(commandDict, openDict)
     self.toRun()
Beispiel #3
0
 def toRun(self):
     while True:
         self.mailHelper = mailHelper()
         self.run()
         time.sleep(self.timeLimit)
Beispiel #4
0
 def toRun(self):
     while True:
         self.mailHelper = mailHelper()
         self.run()
         time.sleep(self.timeLimit)
Beispiel #5
0
 def __init__(self, commandDict, openDict):
     self.mccLog = mccLog()
     self.mailHelper = mailHelper()
     self.commandDict = commandDict
     self.openDict = openDict