Exemplo n.º 1
0
 def __temp(self):
     if CLEAN_LOG_ONSTART:
         remove_file(LOG_PATH)
     logging.basicConfig(
         filename=LOG_PATH,
         level=__DEBUG__,
         format=
         '[%(asctime)s] %(levelname)s - %(filename)s:%(funcName)s - %(message)s'
     )
Exemplo n.º 2
0
 def __clean(self):
     if os.path.exists(self.m_sTemp):
         remove_file(self.m_sTemp)
     self.m_sTemp = ""
Exemplo n.º 3
0
 def screen_set(self):
     self.m_oCRT = CRT(self.p_sPort)
     self.m_oCRT.screen_calculated(DB_PORTS)
     self.m_oBlackScreen.fill()
     logging.info("INFO: clean: %s", TMP_SLEEPER_FILE)
     remove_file(TMP_SLEEPER_FILE)