From 0904508e98238a1d608f7dbd27cd87aa7e475774 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 10 Aug 2009 12:03:47 +0000 Subject: Added sorting of file names so that outputs will be stable even when glob doesn't return sorted results which happens on Linux. --- src/LexGen.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/LexGen.py b/src/LexGen.py index 5b5f0e7c6..571332e6e 100644 --- a/src/LexGen.py +++ b/src/LexGen.py @@ -231,6 +231,7 @@ def RegenerateAll(): # Find all the lexer source code files lexFilePaths = glob.glob(root + "scintilla/src/Lex*.cxx") + sortListInsensitive(lexFilePaths) lexFiles = [os.path.basename(f)[:-4] for f in lexFilePaths] print(lexFiles) lexerModules = [] @@ -261,6 +262,7 @@ def RegenerateAll(): otherProps = ["abbrev.properties", "Embedded.properties", "SciTEGlobal.properties", "SciTE.properties"] if os.path.exists(root + "scite"): propFilePaths = glob.glob(root + "scite/src/*.properties") + sortListInsensitive(propFilePaths) propFiles = [os.path.basename(f) for f in propFilePaths if os.path.basename(f) not in otherProps] sortListInsensitive(propFiles) print(propFiles) -- cgit v1.2.3