diff --git a/main.py b/main.py index b3a3ebea8..2be45bfe4 100644 --- a/main.py +++ b/main.py @@ -19,8 +19,10 @@ def execute_prestartup_script(): return False node_paths = folder_paths.get_folder_paths("custom_nodes") + node_paths = sorted(node_paths) for custom_node_path in node_paths: possible_modules = os.listdir(custom_node_path) + possible_modules = sorted(possible_modules) node_prestartup_times = [] for possible_module in possible_modules: diff --git a/nodes.py b/nodes.py index 6c05e3a2b..6b92590e6 100644 --- a/nodes.py +++ b/nodes.py @@ -1910,9 +1910,11 @@ def load_custom_node(module_path, ignore=set()): def load_custom_nodes(): base_node_names = set(NODE_CLASS_MAPPINGS.keys()) node_paths = folder_paths.get_folder_paths("custom_nodes") + node_paths = sorted(node_paths) node_import_times = [] for custom_node_path in node_paths: possible_modules = os.listdir(os.path.realpath(custom_node_path)) + possible_modules = sorted(possible_modules) if "__pycache__" in possible_modules: possible_modules.remove("__pycache__")