We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 037ca95 commit c2be802Copy full SHA for c2be802
MAVProxy/modules/lib/kmlread.py
@@ -13,11 +13,11 @@ def readkmz(filename):
13
filename.strip('"')
14
#Open the zip file (as applicable)
15
suffix = pathlib.Path(filename).suffix
16
- if suffix == '.kml':
+ if suffix.lower() == '.kml':
17
fo = open(filename, "rb")
18
fstring = fo.read()
19
fo.close()
20
- elif suffix == '.kmz':
+ elif suffix.lower() == '.kmz':
21
zip=ZipFile(filename)
22
fstring = None
23
for z in zip.filelist:
0 commit comments