X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=xsetbg_db.py;h=43a37e73599c8126d081c2255e8439bf184689dd;hb=21192b521520392055185f65e5764800edb41f32;hp=4853afb8f75ba90a2c142020ccd60e84034bd36b;hpb=a337e26c169baecb75197b50db5fd734c39f6187;p=xsetbg.git diff --git a/xsetbg_db.py b/xsetbg_db.py index 4853afb..43a37e7 100755 --- a/xsetbg_db.py +++ b/xsetbg_db.py @@ -12,11 +12,11 @@ __all__ = ['xsetbg_db'] import anydbm import os import shelve -from xsetbg_conf import xsetbg_dir, xsetbg_conf +from xsetbg_conf import xsetbg_conf -xsetbg_db_name = "xsetbg.db" +xsetbg_db_path = os.path.expanduser(xsetbg_conf.get('xsetbg', 'database')) try: - xsetbg_db = shelve.open(os.path.join(xsetbg_dir, xsetbg_db_name), 'r') + xsetbg_db = shelve.open(xsetbg_db_path, 'r') except anydbm.error: xsetbg_db = None