Update kml_export.lua

use os.remove(image)
This commit is contained in:
supertobi
2016-01-31 00:57:43 +01:00
parent 5d2ddc490a
commit c323ce6cbb

View File

@@ -139,8 +139,7 @@ local function create_kml_file(storage, image_table, extra_data)
end
-- delete the original image to not get into the kmz file
local rmCommand = "rm "..image
coroutine.yield("RUN_COMMAND", rmCommand)
os.remove(image)
local pattern = "[/]?([^/]+)$"
filmName = string.match(_.film.path, pattern)