sort the list of files returned from glob, for including the code/*.js. this will ensure a consistant order for every build, in case there are order-specific bugs

This commit is contained in:
Jon Atkins
2013-08-19 20:43:11 +01:00
parent 19bd25a17f
commit 755bc8148b

View File

@ -132,7 +132,7 @@ def loaderImage(var):
return 'data:image/png;base64,{0}'.format(base64.encodestring(open(fn, 'rb').read()).decode('utf8').replace('\n', ''))
def loadCode(ignore):
return '\n\n'.join(map(readfile, glob.glob('code/*.js')))
return '\n\n'.join(map(readfile, sorted(glob.glob('code/*.js'))))
def extractUserScriptMeta(var):