summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Vasile <james@jamesvasile.com>2013-02-09 13:28:52 -0500
committerJames Vasile <james@jamesvasile.com>2013-02-09 13:29:52 -0500
commitf80e30342dd16bc432652375abcf8a179ea72182 (patch)
tree65bcddf75483a079413284754854429ba8c1ea5a
parent561231612871c68b038397c4c26368a3ee37ac86 (diff)
adjust name of sqlite file bc withsqlite will add the extension
-rw-r--r--cfg.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cfg.py b/cfg.py
index 74ad88d..4d24806 100644
--- a/cfg.py
+++ b/cfg.py
@@ -38,3 +38,5 @@ html_root = None
main_menu = Menu()
base_href = ""
+if store_file.endswith(".sqlite3"):
+ store_file = os.path.splitext(store_file)[0]