aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/tools.py
diff options
context:
space:
mode:
authorPjotr Prins2016-02-23 11:16:33 +0000
committerPjotr Prins2016-04-20 09:00:21 +0000
commit218fd0c7666583748098f0b7b4286b6d1cbf6838 (patch)
treea711ba23d6036ebcd8c33e322d6f45592993d473 /wqflask/utility/tools.py
parenta5ff6520ad29266e1647ce54ad6b2c0f200dfe9a (diff)
downloadgenenetwork2-218fd0c7666583748098f0b7b4286b6d1cbf6838.tar.gz
[PATCH 033/100] Refactored file searching
Diffstat (limited to 'wqflask/utility/tools.py')
-rw-r--r--wqflask/utility/tools.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/wqflask/utility/tools.py b/wqflask/utility/tools.py
index dd40be99..d4c10c68 100644
--- a/wqflask/utility/tools.py
+++ b/wqflask/utility/tools.py
@@ -36,7 +36,7 @@ def get_setting(command_id,guess=None):
"""
def value(command):
if command:
- sys.stderr.write("Found value "+command+"\n")
+ sys.stderr.write("Found path "+command+"\n")
return command
else:
return None
@@ -95,6 +95,7 @@ def locate(name, subdir=None):
if valid_path(base):
lookfor = base + "/" + name
if valid_file(lookfor):
+ print("Found: file "+lookfor+"\n")
return lookfor
else:
raise IOError("Can not locate "+lookfor)
@@ -114,6 +115,7 @@ def locate_without_error(name, subdir=None):
if valid_path(base):
lookfor = base + "/" + name
if valid_file(lookfor):
+ print("Found: file "+name+"\n")
return lookfor
sys.stderr.write("WARNING: file "+name+" not found\n")
return None