Merge 3f56e649595967624682dcbe3bded975f3a0dae8 into 28eaab608bc34c4e3b1886b1bddbb429453249d8

This commit is contained in:
salt 2025-12-18 17:52:17 -08:00 committed by GitHub
commit 06ec545edc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -123,8 +123,10 @@ def execute_prestartup_script():
return False return False
node_paths = folder_paths.get_folder_paths("custom_nodes") node_paths = folder_paths.get_folder_paths("custom_nodes")
node_paths = sorted(node_paths)
for custom_node_path in node_paths: for custom_node_path in node_paths:
possible_modules = os.listdir(custom_node_path) possible_modules = os.listdir(custom_node_path)
possible_modules = sorted(possible_modules)
node_prestartup_times = [] node_prestartup_times = []
for possible_module in possible_modules: for possible_module in possible_modules:

View File

@ -2233,9 +2233,11 @@ async def init_external_custom_nodes():
""" """
base_node_names = set(NODE_CLASS_MAPPINGS.keys()) base_node_names = set(NODE_CLASS_MAPPINGS.keys())
node_paths = folder_paths.get_folder_paths("custom_nodes") node_paths = folder_paths.get_folder_paths("custom_nodes")
node_paths = sorted(node_paths)
node_import_times = [] node_import_times = []
for custom_node_path in node_paths: for custom_node_path in node_paths:
possible_modules = os.listdir(os.path.realpath(custom_node_path)) possible_modules = os.listdir(os.path.realpath(custom_node_path))
possible_modules = sorted(possible_modules)
if "__pycache__" in possible_modules: if "__pycache__" in possible_modules:
possible_modules.remove("__pycache__") possible_modules.remove("__pycache__")