pessulus r356 - trunk
- From: rbradford svn gnome org
- To: svn-commits-list gnome org
- Subject: pessulus r356 - trunk
- Date: Fri, 18 Apr 2008 19:45:23 +0100 (BST)
Author: rbradford
Date: Fri Apr 18 18:45:23 2008
New Revision: 356
URL: http://svn.gnome.org/viewvc/pessulus?rev=356&view=rev
Log:
2008-04-18 Rob Bradford <rob robster org uk>
* pessulus.in:
Switch to using python-gnome-desktop's bugbuddy integration. Patch
from AMAZIGH Aneglus, bug #394529.)
* configure.ac:
We now need gnome-python-desktop 2.17.2 (at least.)
Modified:
trunk/ChangeLog
trunk/configure.ac
trunk/pessulus.in
Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Fri Apr 18 18:45:23 2008
@@ -10,7 +10,8 @@
PKG_CHECK_MODULES(PESSULUS,
pygtk-2.0 >= 2.6.0 \
- gnome-python-2.0 >= 2.6.0)
+ gnome-python-2.0 >= 2.6.0 \
+ gnome-python-desktop-2.0 >= 2.17.2)
GETTEXT_PACKAGE=pessulus
AC_SUBST(GETTEXT_PACKAGE)
Modified: trunk/pessulus.in
==============================================================================
--- trunk/pessulus.in (original)
+++ trunk/pessulus.in Fri Apr 18 18:45:23 2008
@@ -19,29 +19,10 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
-
import sys
+import bugbuddy
-# Shamelessly stolen from /gnome-python/examples/bug-buddy-integration.py
-# Original credit to Fernando Herrera
-def bug_catcher(exctype, value, tb):
- import traceback
- import tempfile
- import os
- if exctype is not KeyboardInterrupt:
- msg = "".join(traceback.format_exception(exctype, value, tb))
- print >> sys.stderr, msg
- fd, name = tempfile.mkstemp()
- try:
- os.write(fd,msg)
- os.system("bug-buddy --include=\"%s\" --appname=\"%s\"" % (name, sys.argv[0]))
- finally:
- os.unlink(name)
- raise SystemExit
-
-
-sys.excepthook = bug_catcher
-# End bug-buddy integration theft.
+bugbuddy.install()
if not "@pyexecdir@" in sys.path:
sys.path.insert (0, "@pyexecdir@")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]