From 80af43dba64a229c80c1f7801235dee05d596812 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Fri, 17 Mar 2023 19:02:37 -0400 Subject: [PATCH] Switch to sorted set for path. --- folder_paths.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/folder_paths.py b/folder_paths.py index b2752e15..f04efc0d 100644 --- a/folder_paths.py +++ b/folder_paths.py @@ -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))