comparison orpg/tools/orpg_log.py @ 81:65c212e9a5b4 ornery-dev

Controls panel is completed. Users cannot delete branches nicely without a Merc upgrade, so that feature will appear in Pious Paladin. Crash report is being tested on windows.
author sirebral
date Wed, 26 Aug 2009 23:24:45 -0500
parents dd4be4817377
children 2fa8bd6785a5
comparison
equal deleted inserted replaced
80:51bb772c3609 81:65c212e9a5b4
51 crash_report = open(dir_struct["home"] + 'crash-report.txt', "r") 51 crash_report = open(dir_struct["home"] + 'crash-report.txt', "r")
52 for line in crash_report: msg += line 52 for line in crash_report: msg += line
53 logger.exception(msg) 53 logger.exception(msg)
54 crash_report.close() 54 crash_report.close()
55 logger.exception("Crash Report Created!!") 55 logger.exception("Crash Report Created!!")
56 logger.info("Printed out a datafile called crash-report.txt\nPress <enter> to exit!", True); raw_input('') 56 logger.info("Printed out crash-report.txt in your System folder", True)
57 exit() 57 if sys.platform in ('win32', 'win64'):
58 logger.info("Press <enter> to continue!", True)
59 raw_input('')
60 #exit()
58 61
59 class DebugConsole(wx.Frame): 62 class DebugConsole(wx.Frame):
60 def __init__(self, parent): 63 def __init__(self, parent):
61 super(DebugConsole, self).__init__(parent, -1, "Debug Window") 64 super(DebugConsole, self).__init__(parent, -1, "Debug Window")
62 icon = None 65 icon = None