same as previous commit, allow bsddb3 use
svn: r16447
This commit is contained in:
parent
b3beba53d8
commit
18bb7615c3
@ -27,9 +27,11 @@
|
|||||||
# python modules
|
# python modules
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
from bsddb import db as bsddb_db
|
import config
|
||||||
from gen.ggettext import gettext as _
|
if config.get('preferences.use-bsddb3'):
|
||||||
from DdTargets import DdTargets
|
from bsddb3 import db as bsddb_db
|
||||||
|
else:
|
||||||
|
from bsddb import db as bsddb_db
|
||||||
import cPickle as pickle
|
import cPickle as pickle
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
@ -45,6 +47,8 @@ log = logging.getLogger(".")
|
|||||||
# GTK/Gnome modules
|
# GTK/Gnome modules
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
from gen.ggettext import gettext as _
|
||||||
|
from DdTargets import DdTargets
|
||||||
import gtk
|
import gtk
|
||||||
from gtk import gdk
|
from gtk import gdk
|
||||||
import pango
|
import pango
|
||||||
|
Loading…
Reference in New Issue
Block a user