From 6dd6fa66d0d3bf2a67460b09fd6d65da7f05ec18 Mon Sep 17 00:00:00 2001 From: redshiftzero Date: Mon, 30 Jul 2018 14:50:47 -0700 Subject: [PATCH] Use absolute path to DB_PATH And note that the config management should be handled over in #2 --- securedrop_client/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/securedrop_client/models.py b/securedrop_client/models.py index 82e8079e6..2dbfc6d9f 100644 --- a/securedrop_client/models.py +++ b/securedrop_client/models.py @@ -6,7 +6,8 @@ from sqlalchemy.ext.declarative import declarative_base -DB_PATH = 'svs.sqlite' +# TODO: Store this in config file, see issue #2 +DB_PATH = os.path.abspath('svs.sqlite') if not os.path.exists(DB_PATH): sqlite3.connect(DB_PATH)