Sort file list when generating then main file so it will produce the same output on all platforms.
This commit is contained in:
parent
9482ed0b0a
commit
6593aae788
@ -11,11 +11,11 @@ def Main (argv):
|
|||||||
|
|
||||||
engineFiles = []
|
engineFiles = []
|
||||||
sourceFolder = os.path.join (rootDir, 'source', 'engine')
|
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)
|
dirPath = os.path.join (sourceFolder, dirName)
|
||||||
if not os.path.isdir (dirPath):
|
if not os.path.isdir (dirPath):
|
||||||
continue
|
continue
|
||||||
for fileName in os.listdir (dirPath):
|
for fileName in sorted (os.listdir (dirPath)):
|
||||||
engineFiles.append ({
|
engineFiles.append ({
|
||||||
'dirName': dirName,
|
'dirName': dirName,
|
||||||
'fileName': fileName
|
'fileName': fileName
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user