X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Fdatabase.py;h=88ca836e2d1aa4c78471ede28f7541fac630aafa;hp=342d665a224761a2557ea00233f7d99c7dbae321;hb=7eb9615b30274033cc0c828244569c709906c40b;hpb=c3a683299d4c27d6eadaacf4fb516f73a6c69fc3 diff --git a/bindings/python/notmuch/database.py b/bindings/python/notmuch/database.py index 342d665a..88ca836e 100644 --- a/bindings/python/notmuch/database.py +++ b/bindings/python/notmuch/database.py @@ -675,7 +675,10 @@ class Database(object): if not config.has_option('database', 'path'): raise NotmuchError(message="No DB path specified" " and no user default found") - return config.get('database', 'path') + db_path = config.get('database', 'path') + if not os.path.isabs(db_path): + db_path = os.path.expanduser(os.path.join("~", db_path)) + return db_path """notmuch_database_get_config""" _get_config = nmlib.notmuch_database_get_config