diff options
author | Pjotr Prins | 2016-02-24 11:25:10 +0000 |
---|---|---|
committer | Pjotr Prins | 2016-04-20 09:16:44 +0000 |
commit | 31a1c126185adb747028d035717ad72728a52b0e (patch) | |
tree | 05391053049ba4085b93865a9bfe65cb1b5fd3cd /wqflask/utility/tools.py | |
parent | 5fffa1aa4260af6663c1f9b4cf7494d3ebc6995d (diff) | |
download | genenetwork2-31a1c126185adb747028d035717ad72728a52b0e.tar.gz |
-a
[PATCH 038/100] Fix compile errors
Diffstat (limited to 'wqflask/utility/tools.py')
-rw-r--r-- | wqflask/utility/tools.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/wqflask/utility/tools.py b/wqflask/utility/tools.py index c0f6a49a..67c5128a 100644 --- a/wqflask/utility/tools.py +++ b/wqflask/utility/tools.py @@ -1,3 +1,4 @@ + # Tools/paths finder resolves external paths from settings and/or environment # variables @@ -83,9 +84,10 @@ def assert_dir(dir): if not valid_path(dir): raise Exception("ERROR: can not find directory "+dir) return dir - + def mk_dir(dir): - os.makedirs(dir) + if not valid_path(dir): + os.makedirs(dir) return assert_dir(dir) def locate(name, subdir=None): |