Commit 7c7c3761 authored by Łukasz Nowak's avatar Łukasz Nowak

Make generator len-able

parent 883fe6bf
...@@ -99,10 +99,10 @@ def main(): ...@@ -99,10 +99,10 @@ def main():
if len(result_list) > 0: if len(result_list) > 0:
print(try_info + ' Data directory found, looking for results.') print(try_info + ' Data directory found, looking for results.')
result_path = result_list[0] result_path = result_list[0]
result_file_list = (os.path.join(dirname, filename) result_file_list = list((os.path.join(dirname, filename)
for dirname, dirnames, filenames in os.walk(result_path) for dirname, dirnames, filenames in os.walk(result_path)
for filename in filenames for filename in filenames
) ))
if len(result_file_list): if len(result_file_list):
print(try_info + ' No result posted, will check next try.') print(try_info + ' No result posted, will check next try.')
for result_file in result_file_list: for result_file in result_file_list:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment