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

Loading…
Cancel
Save