Skip to content

Commit

Permalink
Core: organize files on ingest via alpha, not ascii (ArchipelagoMW#3029)
Browse files Browse the repository at this point in the history
* organize files on ingest via alpha, not ascii

* Change from lower() to casefold()
  • Loading branch information
kedNalatacId authored and qwint committed Jun 24, 2024
1 parent 486c664 commit 8c56b1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def main(args=None, callback=ERmain):
raise ValueError(f"File {fname} is invalid. Please fix your yaml.") from e

# sort dict for consistent results across platforms:
weights_cache = {key: value for key, value in sorted(weights_cache.items())}
weights_cache = {key: value for key, value in sorted(weights_cache.items(), key=lambda k: k[0].casefold())}
for filename, yaml_data in weights_cache.items():
if filename not in {args.meta_file_path, args.weights_file_path}:
for yaml in yaml_data:
Expand Down

0 comments on commit 8c56b1c

Please sign in to comment.