gnome-specimen r113 - in branches/import-from-bzr: . specimen
- From: wbolster svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-specimen r113 - in branches/import-from-bzr: . specimen
- Date: Tue, 17 Jun 2008 18:53:47 +0000 (UTC)
Author: wbolster
Date: Tue Jun 17 18:53:47 2008
New Revision: 113
URL: http://svn.gnome.org/viewvc/gnome-specimen?rev=113&view=rev
Log:
* specimen/main.py:
- Split gtk.glade import into its own try/catch clause,
since this module is packaged seperately (at least
Debian does this).
Modified:
branches/import-from-bzr/ (props changed)
branches/import-from-bzr/specimen/main.py
Modified: branches/import-from-bzr/specimen/main.py
==============================================================================
--- branches/import-from-bzr/specimen/main.py (original)
+++ branches/import-from-bzr/specimen/main.py Tue Jun 17 18:53:47 2008
@@ -30,10 +30,15 @@
# for more information.
try:
import pygtk; pygtk.require('2.0')
- import gtk, gtk.glade
+ import gtk
except (ImportError, AssertionError), e:
- exit_with_error('Importing pygtk, gtk, and gtk.glade modules failed', e)
-
+ exit_with_error('Importing pygtk and gtk modules failed', e)
+
+ try:
+ import gtk.glade
+ except ImportError, e:
+ exit_with_error('Importing gtk.glade module failed', e)
+
try:
import gnome
except ImportError, e:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]