Sort file list when generating then main file so it will produce the same output on all platforms.

This commit is contained in:
Viktor Kovacs 2023-01-29 13:28:32 +01:00
parent 9482ed0b0a
commit 6593aae788

View File

@ -11,11 +11,11 @@ def Main (argv):
engineFiles = []
sourceFolder = os.path.join (rootDir, 'source', 'engine')
for dirName in os.listdir (sourceFolder):
for dirName in sorted (os.listdir (sourceFolder)):
dirPath = os.path.join (sourceFolder, dirName)
if not os.path.isdir (dirPath):
continue
for fileName in os.listdir (dirPath):
for fileName in sorted (os.listdir (dirPath)):
engineFiles.append ({
'dirName': dirName,
'fileName': fileName