diff options
author | Pjotr Prins | 2016-09-24 07:41:39 +0000 |
---|---|---|
committer | Pjotr Prins | 2016-09-25 07:39:35 +0000 |
commit | e7693e53821747d294452c9bff7e8b0f38a0eb8e (patch) | |
tree | c019cd95ddf99ba1bcde1587c3d454b5b916855e /wqflask/utility | |
parent | ae1a7f0c8bed6b1a3445a4fac26a578851715629 (diff) | |
download | genenetwork2-e7693e53821747d294452c9bff7e8b0f38a0eb8e.tar.gz |
tools: export GENENETWORK_FILES and move cache into TMPDIR/gn2
Diffstat (limited to 'wqflask/utility')
-rw-r--r-- | wqflask/utility/tools.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/wqflask/utility/tools.py b/wqflask/utility/tools.py index 2c8cc5c5..907b0d6a 100644 --- a/wqflask/utility/tools.py +++ b/wqflask/utility/tools.py @@ -147,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' @@ -184,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() |