about summary refs log tree commit diff
path: root/wqflask/utility/tools.py
diff options
context:
space:
mode:
authorPjotr Prins2016-09-25 08:51:28 +0000
committerPjotr Prins2016-09-25 08:51:28 +0000
commit0f602fd058934feaaa37eb72d055bfcfcfc9ef8f (patch)
treeab3f4415560fec1157aa2e41375495114092a4c3 /wqflask/utility/tools.py
parent828287669ded48da7712bfbaf320d5f4a8abe163 (diff)
parente8a5cb1fba08f5d35f7392a1f8af54bf8ae65821 (diff)
downloadgenenetwork2-0f602fd058934feaaa37eb72d055bfcfcfc9ef8f.tar.gz
Merge branch 'master' into chfi
Diffstat (limited to 'wqflask/utility/tools.py')
-rw-r--r--wqflask/utility/tools.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/wqflask/utility/tools.py b/wqflask/utility/tools.py
index bb8241f5..907b0d6a 100644
--- a/wqflask/utility/tools.py
+++ b/wqflask/utility/tools.py
@@ -3,6 +3,7 @@
 
 import os
 import sys
+
 from wqflask import app
 
 # Use the standard logger here to avoid a circular dependency
@@ -146,7 +147,10 @@ def locate_ignore_error(name, subdir=None):
     return None
 
 def tempdir():
-    return valid_path(get_setting("TEMPDIR","/tmp"))
+    """
+    Get UNIX TMPDIR by default
+    """
+    return valid_path(get_setting("TMPDIR","/tmp"))
 
 BLUE  = '\033[94m'
 GREEN = '\033[92m'
@@ -183,9 +187,9 @@ LOG_BENCH          = get_setting_bool('LOG_BENCH')
 LOG_FORMAT         = "%(message)s"    # not yet in use
 USE_REDIS          = get_setting_bool('USE_REDIS')
 USE_GN_SERVER      = get_setting_bool('USE_GN_SERVER')
+GENENETWORK_FILES  = get_setting_bool('GENENETWORK_FILES')
 
 PYLMM_COMMAND      = pylmm_command()
 GEMMA_COMMAND      = gemma_command()
 PLINK_COMMAND      = plink_command()
-FLAT_FILES         = flat_files()
 TEMPDIR            = tempdir()