diff options
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() |