From ec4aef5054ebe5a6f1414d4de5237021a911e68e Mon Sep 17 00:00:00 2001 From: noirauds Date: Mon, 17 Feb 2014 09:48:05 +0100 Subject: [PATCH] 0007488: After creating narrative web report, some temporary files remains in /tmp --- gramps/plugins/webreport/narrativeweb.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gramps/plugins/webreport/narrativeweb.py b/gramps/plugins/webreport/narrativeweb.py index 3b60c04f2..530d0fba4 100644 --- a/gramps/plugins/webreport/narrativeweb.py +++ b/gramps/plugins/webreport/narrativeweb.py @@ -4581,6 +4581,7 @@ class MediaPages(BasePage): os.write(filed, initial_image_data) os.close(filed) self.report.archive.add(dest, initial_image_path) + os.unlink(dest) else: filed = open(os.path.join(self.html_dir, initial_image_path), 'wb') filed.write(initial_image_data)