Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sensor_toolbar.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2009-09-08 13:20:21 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2009-09-08 13:20:21 (GMT)
commitb00bb5a94c7005267c33e8b43caa53b7d9b42fb5 (patch)
treeded4f1984366cde45e21d245a0a4f5fbc1f2e68f /sensor_toolbar.py
parent2b4faaff0f1344cfd995c24d56099212015e75ad (diff)
added exception for gconf for old builds
Diffstat (limited to 'sensor_toolbar.py')
-rw-r--r--sensor_toolbar.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/sensor_toolbar.py b/sensor_toolbar.py
index 8eff7af..db9ae97 100644
--- a/sensor_toolbar.py
+++ b/sensor_toolbar.py
@@ -20,7 +20,6 @@
import pygtk
import gtk
-import gconf
import time
from gettext import gettext as _
@@ -29,7 +28,10 @@ import config #This has all the globals
from sugar.graphics.toolbutton import ToolButton
from sugar.graphics.combobox import ComboBox
from sugar.graphics.toolcombobox import ToolComboBox
-from sugar import profile
+try:
+ import gconf
+except:
+ from sugar import profile
# 'Sensor' toolbar class
class SensorToolbar(gtk.Toolbar):