aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility
diff options
context:
space:
mode:
authorPjotr Prins2016-02-24 11:25:10 +0000
committerPjotr Prins2016-04-20 09:16:44 +0000
commit31a1c126185adb747028d035717ad72728a52b0e (patch)
tree05391053049ba4085b93865a9bfe65cb1b5fd3cd /wqflask/utility
parent5fffa1aa4260af6663c1f9b4cf7494d3ebc6995d (diff)
downloadgenenetwork2-31a1c126185adb747028d035717ad72728a52b0e.tar.gz
-a
[PATCH 038/100] Fix compile errors
Diffstat (limited to 'wqflask/utility')
-rw-r--r--wqflask/utility/tools.py6
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):