os.remove("tmp.zip") wx.CallAfter(frame.launch) return if not IS_FROZEN: prnt("Cleaning out .pyc") pycList = [f for f in os.listdir(".") if f.endswith(".pyc")] for f in pycList: os.remove(f) os.remove("tmp.zip") wx.CallAfter(frame.updateComplete, info) if __name__ == '__main__': logging.setupLogging("updater") if os.path.isdir("pending"): prnt("Cleaning pending") for f in os.listdir("pending"): shutil.copyfile("pending/%s"%f, f) shutil.rmtree("pending") for f in os.listdir("."): if f.endswith('.old'): os.remove(f) app = wx.App(redirect=False) frame = UpdaterFrame() frame.Show()
self.fightSelector.SetSelection(0) self.dashboardFight = None self.onAnalyzerTick(log_analyzer.get()) def onSetEnrageTime(self, event): dialog = wx.TextEntryDialog(self, "Set enrage timer (seconds)", "Enrage Timer", "0.0") enrageTime = config.get("customEnrageTime") if enrageTime: dialog.SetValue(enrageTime) if dialog.ShowModal(): config.set("customEnrageTime", dialog.GetValue()) if __name__ == '__main__': logging.setupLogging("swap") locale.setlocale(locale.LC_ALL, '') if IS_FROZEN: if len(sys.argv) != 2 or sys.argv[1] != '--from-updater': subprocess.Popen(["updater.exe"], close_fds=True) exit() prnt("SWAP %s booting up..."%VERSION) net.init() config.load() log_parser.start() log_analyzer.start(log_parser.getThread()) if config.get('tr0lled') == None: