X-Git-Url: https://git.phdru.name/?p=xsetbg.git;a=blobdiff_plain;f=xsetbg_db.py;h=43a37e73599c8126d081c2255e8439bf184689dd;hp=d98e1b5a3ce0cc71fbd5f9eb1ec80b2abb64d0b3;hb=21192b521520392055185f65e5764800edb41f32;hpb=76c9a423c497a1b7c2831087e02e6d8dbda5cb58 diff --git a/xsetbg_db.py b/xsetbg_db.py index d98e1b5..43a37e7 100755 --- a/xsetbg_db.py +++ b/xsetbg_db.py @@ -10,10 +10,11 @@ __license__ = "GNU GPL" __all__ = ['xsetbg_db'] import anydbm +import os import shelve from xsetbg_conf import xsetbg_conf -xsetbg_db_path = xsetbg_conf.get('xsetbg', 'database') +xsetbg_db_path = os.path.expanduser(xsetbg_conf.get('xsetbg', 'database')) try: xsetbg_db = shelve.open(xsetbg_db_path, 'r')