Allow spaces in file paths

master
Dan Howe 7 years ago
parent ed9ccc463e
commit 45ca2d5d1c

@ -74,8 +74,8 @@ def get_lat_lon(exif_data):
gps_longitude = gps_info.get('GPSLongitude') gps_longitude = gps_info.get('GPSLongitude')
gps_longitude_ref = gps_info.get('GPSLongitudeRef') gps_longitude_ref = gps_info.get('GPSLongitudeRef')
if (gps_latitude and gps_latitude_ref and gps_longitude if (gps_latitude and gps_latitude_ref and gps_longitude and
and gps_longitude_ref): gps_longitude_ref):
lat = convert_to_degrees(gps_latitude) lat = convert_to_degrees(gps_latitude)
if gps_latitude_ref == 'S': if gps_latitude_ref == 'S':
lat = -lat lat = -lat
@ -103,7 +103,8 @@ def export_kml_file(dirname, fnames, kml_name):
pnt.coords = [(lon, lat)] pnt.coords = [(lon, lat)]
# Add content to popup window # Add content to popup window
pnt.description = ('<![CDATA[ <img src={} height="500px" />]]>'.format( pnt.description = (
'<![CDATA[ <img src="{}"" height="500px" />]]>'.format(
os.path.join(dirname, fname))) os.path.join(dirname, fname)))
pnt.stylemap.normalstyle.iconstyle.scale = 1 pnt.stylemap.normalstyle.iconstyle.scale = 1
pnt.stylemap.normalstyle.iconstyle.icon.href = ( pnt.stylemap.normalstyle.iconstyle.icon.href = (

Loading…
Cancel
Save