1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

permit omt and sat to be used in filename

This commit is contained in:
George Hunt 2019-05-19 17:07:01 -07:00
parent abc8fb8947
commit a5088f063d

View file

@ -105,7 +105,7 @@ def get_installed_regions():
os.chdir(map_doc_root)
for filename in os.listdir('.'):
if fnmatch.fnmatch(filename, '??-osm-omt*'):
region = re.sub(r'^..-osm-omt_(.*)',r'\1',filename)
region = re.sub(r'^..-osm-..._(.*)',r'\1',filename)
installed.append(region)
# add the splash page if no other maps are present
if len(installed) == 0: