summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-05 19:08:38 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-05 19:08:38 +0300
commit5ae66b037a053fae891c3cbb3819103b4460ca7d (patch)
tree6dee558fe03fcb9f05efdcadb95b99edf7a5555f
parent29bb2c7bc4409596601dc5f8ad1bb5359e8bdc49 (diff)
downloadevol-tools-s20160706.tar.gz
evol-tools-s20160706.tar.bz2
evol-tools-s20160706.tar.xz
evol-tools-s20160706.zip
hercules: in tmw to map cache script sort maps list before using.s20160706
-rw-r--r--hercules/code/clienttoserver/maps.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/hercules/code/clienttoserver/maps.py b/hercules/code/clienttoserver/maps.py
index e7949fb..055255a 100644
--- a/hercules/code/clienttoserver/maps.py
+++ b/hercules/code/clienttoserver/maps.py
@@ -14,7 +14,11 @@ from xml.dom import minidom
from code.fileutils import *
def getTmxFiles(srcDir):
+ names = []
for name in os.listdir(srcDir):
+ names.append(name)
+ names.sort()
+ for name in names:
fileName = srcDir + name
if os.path.isfile(fileName) == False:
continue