diff options
author | Pjotr Prins | 2016-03-03 11:21:01 +0000 |
---|---|---|
committer | Pjotr Prins | 2016-04-20 10:00:15 +0000 |
commit | a66858e99c2195d90a187899db6f4dd8966a0a2c (patch) | |
tree | e2c28be74e333614c78ef748ac8fdd165953effd /wqflask | |
parent | c52bf79ba92d2a632637536a9ea607c22ef2d9bf (diff) | |
download | genenetwork2-a66858e99c2195d90a187899db6f4dd8966a0a2c.tar.gz |
Show error when GENODIR is missing
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/utility/tools.py | 4 |
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): |