[travis ci] Sort file list in generate-template-files.py.

This commit is contained in:
James Chen 2014-03-12 20:34:49 +08:00
parent c4752b260b
commit 04038a912f
1 changed files with 2 additions and 0 deletions

View File

@ -148,6 +148,8 @@ class CocosFileList:
Save content to file with json format. Save content to file with json format.
""" """
f = open(fileName,"w") f = open(fileName,"w")
self.fileList_com.sort()
self.fileList_lua.sort()
content ={'common':self.fileList_com,'lua':self.fileList_lua} content ={'common':self.fileList_com,'lua':self.fileList_lua}
json.dump(content,f,sort_keys=True,indent=4) json.dump(content,f,sort_keys=True,indent=4)
f.close() f.close()