aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility
diff options
context:
space:
mode:
authorPjotr Prins2016-03-03 11:21:01 +0000
committerPjotr Prins2016-04-20 10:00:15 +0000
commita66858e99c2195d90a187899db6f4dd8966a0a2c (patch)
treee2c28be74e333614c78ef748ac8fdd165953effd /wqflask/utility
parentc52bf79ba92d2a632637536a9ea607c22ef2d9bf (diff)
downloadgenenetwork2-a66858e99c2195d90a187899db6f4dd8966a0a2c.tar.gz
Show error when GENODIR is missing
Diffstat (limited to 'wqflask/utility')
-rw-r--r--wqflask/utility/tools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/utility/tools.py b/wqflask/utility/tools.py
index b8eff12a..9405a9c6 100644
--- a/wqflask/utility/tools.py
+++ b/wqflask/utility/tools.py
@@ -76,8 +76,8 @@ def plink_command(guess=None):
def flat_files(subdir=None):
base = get_setting("GENENETWORK_FILES")
if subdir:
- return valid_path(base+"/"+subdir)
- return valid_path(base)
+ return assert_dir(base+"/"+subdir)
+ return assert_dir(base)
def assert_dir(dir):
if not valid_path(dir):