"""
path, contain, not_contain = [], [], []
for (name, value) in input_tuple:
if not isinstance(value, string_types):
continue
if len(value) <= 1 or value == """":
continue
if name == "path_to_search":
value = value.split(",")
for path_i in value:
path_i = os.path.abspath(path_i.strip())
if os.path.exists(path_i):
path.append(path_i)
else:
raise ValueError("data input folder {} not found, did"
" you maybe forget to download data?"
.format(path_i))
elif name == "filename_contains":
value = value.split(",")
for val in value:
contain.append(val.strip())
elif name == "filename_not_contains":
value = value.split(",")
After Change
:param input_tuple:
:return:
"""
path, contain, not_contain = [], (), ()
for (name, value) in input_tuple:
if not value:
continue