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' )
def __clean(self): if os.path.exists(self.m_sTemp): remove_file(self.m_sTemp) self.m_sTemp = ""
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)