aboutsummaryrefslogtreecommitdiff
path: root/etc/default_settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'etc/default_settings.py')
-rw-r--r--etc/default_settings.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/etc/default_settings.py b/etc/default_settings.py
index 929bd687..48d3f66b 100644
--- a/etc/default_settings.py
+++ b/etc/default_settings.py
@@ -1,13 +1,14 @@
import os
+import sys
-LOGFILE = "/var/log/genenetwork/wqflask.log"
+LOGFILE = "/tmp/genenetwork2.log"
# This is needed because Flask turns key errors into a
# 400 bad request response with no exception/log
TRAP_BAD_REQUEST_ERRORS = True
-DB_URI = "mysql://gn2:default@localhost/db_webqtl"
-SQLALCHEMY_DATABASE_URI = 'mysql://gn2:default@localhost/db_webqtl'
+DB_URI = "mysql://gn2:mysql_password@localhost/db_webqtl_s"
+SQLALCHEMY_DATABASE_URI = 'mysql://gn2:mysql_password@localhost/db_webqtl_s'
# http://pythonhosted.org/Flask-Security/configuration.html
SECURITY_CONFIRMABLE = True
@@ -22,7 +23,7 @@ SERVER_PORT = 5003
SECRET_HMAC_CODE = '\x08\xdf\xfa\x93N\x80\xd9\\H@\\\x9f`\x98d^\xb4a;\xc6OM\x946a\xbc\xfc\x80:*\xebc'
# Path overrides for Genenetwork
-HOME=os.environ.get('HOME')
-PYLMM_PATH = HOME+"/izip/git/opensource/python/pylmm_gn2/"
-PLINK_PATH = HOME+"/.guix-profile/bin"
-GEMMA_PATH = HOME+"/.guix-profile/bin"
+GENENETWORK_FILES = "../../gn2_data"
+PYLMM_RUN = os.popen("which pylmm_redis").read()
+PLINK_RUN = os.popen("which plink2").read()
+GEMMA_RUN = os.popen("which gemma").read()