Skip to content

Commit

Permalink
Fix different sorting on Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Günther <[email protected]>
  • Loading branch information
tom-hg57 authored and m-mirz committed Dec 26, 2024
1 parent 28408f1 commit 0b155b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cimgen/languages/java/lang_pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def label(text, render):

def _create_header_include_file(directory, header_include_filename, header, footer, before, after, blacklist):
lines = []
for file in sorted(directory.glob("*.java")):
for file in sorted(directory.glob("*.java"), key=lambda f: f.stem):
basename = file.stem
if basename not in blacklist:
lines.append(before + 'Map.entry("' + basename + '", new cim4j.' + basename + after + "),\n")
Expand Down

0 comments on commit 0b155b9

Please sign in to comment.