From c9201b49d0ce1a3f8085b58e894ae4d1997ab4ea Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Sat, 26 Dec 2015 18:24:23 +0100 Subject: [PATCH] Update config to use the script's path --- config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config.py b/config.py index 2b041e6..a7d1242 100644 --- a/config.py +++ b/config.py @@ -1,5 +1,8 @@ +import os +basepath = os.path.dirname(os.path.realpath(__file__)) + database = ":memory:" -# database = "db.sqlite3" +# database = os.path.join(basepath, "db.sqlite3") host = "localhost" port = 8080