From 755bc8148baebf17dbcc57530a4b6fe48e244fcc Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Mon, 19 Aug 2013 20:43:11 +0100 Subject: [PATCH] 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 --- build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.py b/build.py index 5c4cd1c1..9cbe650b 100755 --- a/build.py +++ b/build.py @@ -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):