1
0
mirror of https://github.com/tumic0/GPXSee-maps.git synced 2024-11-28 05:34:47 +01:00

Sort the maps at least partialy according to the file names

This commit is contained in:
Martin Tůma 2020-02-26 21:58:38 +01:00
parent 6c7423d37d
commit a255e47756

View File

@ -299,6 +299,7 @@ def processmaps(maps, htmlfile):
htmlfile.write("<table>\n<tr>\n") htmlfile.write("<table>\n<tr>\n")
i = 0 i = 0
maps.sort()
for xmlfile in maps: for xmlfile in maps:
shutil.copyfile(xmlfile, "../maps/" + os.path.basename(xmlfile)) shutil.copyfile(xmlfile, "../maps/" + os.path.basename(xmlfile))
info = mapinfo(xmlfile) info = mapinfo(xmlfile)