--- system-config-bind-4.0.2/GUI.py.old 2007-01-23 15:15:38.000000000 +0100
+++ system-config-bind-4.0.2/GUI.py 2007-01-23 15:25:50.000000000 +0100
@@ -10,7 +10,6 @@
import gettext
__builtin__.__dict__['SCB']='/usr/share/system-config-bind'
-__builtin__.__dict__['SCB_VER']='4.0.0'
os.environ['SCB']='/usr/share/system-config-bind'
os.putenv('SCB','/usr/share/system-config-bind')
gettext.bindtextdomain('bindconf', SCB + '/po')
@@ -81,6 +80,12 @@
# gtk2-2.6.0 now emits an annoying warning message:
# "Mixing deprecated and non-deprecated GtkToolbar API is not allowed"
# and there appears to be no way to prevent it (bug 144301).
+ try:
+ fd = open(SCB+'/'+'system-config-bind.version', 'r')
+ __builtin__.__dict__['SCB_VER'] = (string.split(fd.readline()))[0]
+ fd.close()
+ except:
+ __builtin__.__dict__['SCB_VER'] = '4.0.0'
sys.stdout = file("/dev/null","w")
sys.stderr = sys.stdout
self.xml = gtk.glade.XML ( SCB+'/'+'system-config-bind.glade', domain="bindconf")