From 3b8dbb083693375f9397dd83fda7bced97e800e4 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 16 Aug 2006 23:06:13 -0400 Subject: [PATCH] Enable traceback debugging in the PS --- shell/PresenceService/PresenceService.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/shell/PresenceService/PresenceService.py b/shell/PresenceService/PresenceService.py index 72e9460a..4fe0b2f6 100644 --- a/shell/PresenceService/PresenceService.py +++ b/shell/PresenceService/PresenceService.py @@ -696,13 +696,19 @@ class PresenceService(object): if stype in self._registered_service_types: self._registered_service_types.remove(stype) + def main(): + from sugar import TracebackUtils loop = gobject.MainLoop() ps = PresenceService() + tbh = TracebackUtils.TracebackHelper() try: loop.run() except KeyboardInterrupt: print 'Ctrl+C pressed, exiting...' + del tbh + + if __name__ == "__main__": main()