about summary refs log tree commit diff
path: root/server.py
diff options
context:
space:
mode:
authorPjotr Prins2026-03-28 08:59:07 +0100
committerPjotr Prins2026-03-28 08:59:07 +0100
commit200acb601c4a271cf3be7d8651e80b28f55309d2 (patch)
treef7c9c98a41cf56779a1060bdbbe9b7d65d77c285 /server.py
parent976a1e4db165d967ed9ac2df8d9e02b3e77aff8b (diff)
downloadgenecup-200acb601c4a271cf3be7d8651e80b28f55309d2.tar.gz
GENECUP_DATADIR configures sqlite DB location
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'