Sort glob result for deterministic ordering

This commit is contained in:
huchenlei 2025-01-21 22:06:38 -05:00
parent b2dbafc433
commit 3ef1964c3f

View File

@ -65,7 +65,8 @@ class CustomNodeManager:
translations = {} translations = {}
for folder in folder_paths.get_folder_paths("custom_nodes"): for folder in folder_paths.get_folder_paths("custom_nodes"):
for custom_node_dir in glob.glob(os.path.join(folder, "*/")): # Sort glob results for deterministic ordering
for custom_node_dir in sorted(glob.glob(os.path.join(folder, "*/"))):
locales_dir = os.path.join(custom_node_dir, "locales") locales_dir = os.path.join(custom_node_dir, "locales")
if not os.path.exists(locales_dir): if not os.path.exists(locales_dir):
continue continue