From 18bb7615c3b641a78bcd9c34b048bcb83af74e63 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Sun, 23 Jan 2011 21:27:34 +0000 Subject: [PATCH] same as previous commit, allow bsddb3 use svn: r16447 --- src/gui/editors/editfamily.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/gui/editors/editfamily.py b/src/gui/editors/editfamily.py index 3b2f0ab40..778708c84 100644 --- a/src/gui/editors/editfamily.py +++ b/src/gui/editors/editfamily.py @@ -27,9 +27,11 @@ # python modules # #------------------------------------------------------------------------- -from bsddb import db as bsddb_db -from gen.ggettext import gettext as _ -from DdTargets import DdTargets +import config +if config.get('preferences.use-bsddb3'): + from bsddb3 import db as bsddb_db +else: + from bsddb import db as bsddb_db import cPickle as pickle #------------------------------------------------------------------------- @@ -45,6 +47,8 @@ log = logging.getLogger(".") # GTK/Gnome modules # #------------------------------------------------------------------------- +from gen.ggettext import gettext as _ +from DdTargets import DdTargets import gtk from gtk import gdk import pango