From 748cc5a14e97a349911f5286553b84af394708ac Mon Sep 17 00:00:00 2001 From: Alex Taylor Date: Wed, 10 Jan 2024 01:02:06 +1000 Subject: [PATCH] Use Replicatable order (alphabetical) for custom node loading Currently the order will change depending on environment, this should probably be common everywhere. --- nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes.py b/nodes.py index 96d9e51a..b2622cbf 100644 --- a/nodes.py +++ b/nodes.py @@ -1838,7 +1838,7 @@ def load_custom_nodes(): node_paths = folder_paths.get_folder_paths("custom_nodes") node_import_times = [] for custom_node_path in node_paths: - possible_modules = os.listdir(os.path.realpath(custom_node_path)) + possible_modules = sorted(os.listdir(os.path.realpath(custom_node_path))) if "__pycache__" in possible_modules: possible_modules.remove("__pycache__")