about summary refs log tree commit diff
path: root/server.py
diff options
context:
space:
mode:
Diffstat (limited to 'server.py')
-rwxr-xr-xserver.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/server.py b/server.py
index bd3bd57..b1a7404 100755
--- a/server.py
+++ b/server.py
@@ -70,9 +70,7 @@ def version():
 
 
 app=Flask(__name__)
-#datadir="/export/ratspub/"
-#datadir = "."
-datadir="./"
+datadir=os.environ.get("GENECUP_DATADIR", "./")
 
 app.config['SECRET_KEY'] = '#DtfrL98G5t1dC*4'
 app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///'+datadir+'userspub.sqlite'