Browse Source

Use Replicatable order (alphabetical) for custom node loading

Currently the order will change depending on environment, this should probably be common everywhere.
pull/2507/head
Alex Taylor 10 months ago committed by GitHub
parent
commit
748cc5a14e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      nodes.py

2
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__")

Loading…
Cancel
Save