equal
deleted
inserted
replaced
171 if __name__ == '__main__': |
171 if __name__ == '__main__': |
172 __builtin__.__dict__['_'] = unicode_translation |
172 __builtin__.__dict__['_'] = unicode_translation |
173 # __builtin__.__dict__['_'] = wx.GetTranslation |
173 # __builtin__.__dict__['_'] = wx.GetTranslation |
174 |
174 |
175 |
175 |
|
176 # Life is hard... have a candy. |
|
177 # pylint: disable=wrong-import-position,wrong-import-order |
176 if enablewx: |
178 if enablewx: |
177 try: |
179 try: |
178 import wx |
180 import wx |
179 havewx = True |
181 havewx = True |
180 except ImportError: |
182 except ImportError: |
547 print(msg) |
549 print(msg) |
548 traceback.print_exception(*exp) |
550 traceback.print_exception(*exp) |
549 |
551 |
550 |
552 |
551 def LogException(*exp): |
553 def LogException(*exp): |
552 LogExceptionAndMessage("", exp) |
554 LogMessageAndException("", exp) |
553 |
555 |
554 sys.excepthook = LogException |
556 sys.excepthook = LogException |
555 |
557 |
556 |
558 |
557 def installThreadExcepthook(): |
559 def installThreadExcepthook(): |