From ec12df81666dc268ced47d779c6187cef0437eef Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Thu, 16 Jun 2016 16:08:32 +0000 Subject: default settings: use $HOME as a base by default --- etc/default_settings.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'etc') diff --git a/etc/default_settings.py b/etc/default_settings.py index 0cf40265..088b3d01 100644 --- a/etc/default_settings.py +++ b/etc/default_settings.py @@ -1,7 +1,8 @@ import os import sys -LOGFILE = "/tmp/genenetwork2.log" +HOME=os.environ['HOME'] +LOGFILE = HOME+"/genenetwork2.log" # This is needed because Flask turns key errors into a # 400 bad request response with no exception/log @@ -23,7 +24,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 -GENENETWORK_FILES = os.environ['HOME']+"/gn2_data" +GENENETWORK_FILES = HOME+"/gn2_data" PYLMM_COMMAND = str.strip(os.popen("which pylmm_redis").read()) PLINK_COMMAND = str.strip(os.popen("which plink2").read()) GEMMA_COMMAND = str.strip(os.popen("which gemma").read()) -- cgit v1.2.3