Skip to content

Commit

Permalink
Use absolute path to DB_PATH
Browse files Browse the repository at this point in the history
And note that the config management should be handled over in #2
  • Loading branch information
redshiftzero committed Jul 30, 2018
1 parent 55e11d2 commit 6dd6fa6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion securedrop_client/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6dd6fa6

Please sign in to comment.