Skip to content

Commit c2be802

Browse files
committed
kmlread: make it case insensitive for the suffix
1 parent 037ca95 commit c2be802

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: MAVProxy/modules/lib/kmlread.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ def readkmz(filename):
1313
filename.strip('"')
1414
#Open the zip file (as applicable)
1515
suffix = pathlib.Path(filename).suffix
16-
if suffix == '.kml':
16+
if suffix.lower() == '.kml':
1717
fo = open(filename, "rb")
1818
fstring = fo.read()
1919
fo.close()
20-
elif suffix == '.kmz':
20+
elif suffix.lower() == '.kmz':
2121
zip=ZipFile(filename)
2222
fstring = None
2323
for z in zip.filelist:

0 commit comments

Comments
 (0)