aboutsummaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index eed19cb..8ce8395 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,8 @@
import os, sys, datetime
+if not "FLASK_CONFIG" in os.environ:
+ os.environ["FLASK_CONFIG"] = "../config.cfg"
+
delete_db = len(sys.argv) >= 2 and sys.argv[1].strip() == "-d"
if delete_db and os.path.isfile("db.sqlite"):