diff --git a/main.py b/main.py index b6f7d6cef73..635f0d6dcea 100644 --- a/main.py +++ b/main.py @@ -185,7 +185,8 @@ def execute_script(script_path): node_paths = folder_paths.get_folder_paths("custom_nodes") for custom_node_path in node_paths: - possible_modules = os.listdir(custom_node_path) + possible_modules = sorted(os.listdir(custom_node_path)) + print("!!!possible_modules1!!!:\n" + "\n".join(possible_modules)) node_prestartup_times = [] for possible_module in possible_modules: diff --git a/nodes.py b/nodes.py index fa3a7794955..1685f63c577 100644 --- a/nodes.py +++ b/nodes.py @@ -2353,7 +2353,8 @@ async def init_external_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))) + print("!!!possible_modules2!!!:\n" + "\n".join(possible_modules)) if "__pycache__" in possible_modules: possible_modules.remove("__pycache__")