diff options
author | ngharo <nick@ngha.ro> | 2017-12-29 00:02:05 -0600 |
---|---|---|
committer | ngharo <nick@ngha.ro> | 2017-12-29 00:02:05 -0600 |
commit | 75d05326d067857d22474cc91d069003d7b64b17 (patch) | |
tree | 150958928ea0d3f129b55d3694227b3344adf978 /server/lib | |
parent | 67c7dbdd19afcc17816e43ff66873e76101704a5 (diff) | |
download | imOk-www-75d05326d067857d22474cc91d069003d7b64b17.tar.xz imOk-www-75d05326d067857d22474cc91d069003d7b64b17.zip |
VueJS front-end work in progress
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/database.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/lib/database.py b/server/lib/database.py index d4e47e6..c144d07 100644 --- a/server/lib/database.py +++ b/server/lib/database.py @@ -1,5 +1,8 @@ import sqlite3 +import os def connect(): - connection = sqlite3.connect('../data/imok.db') + connection = sqlite3.connect( + os.path.dirname(os.path.realpath(__file__)) + '/../../data/imok.db' + ) return connection.cursor() |