Commit 80af43db authored by comfyanonymous's avatar comfyanonymous
Browse files

Switch to sorted set for path.

parent 2e73367f
......@@ -56,10 +56,10 @@ def get_full_path(folder_name, filename):
def get_filename_list(folder_name):
global folder_names_and_paths
output_list = []
output_list = set()
folders = folder_names_and_paths[folder_name]
for x in folders[0]:
output_list += filter_files_extensions(recursive_search(x), folders[1])
return output_list
output_list.update(filter_files_extensions(recursive_search(x), folders[1]))
return sorted(list(output_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