From 79395f14c6ac7a82c716b11424ae2ad5103966b2 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Thu, 3 Dec 2015 00:51:35 +0100 Subject: [PATCH] 9650 : permission denied : change mtime to origin instead of destination. --- gramps/plugins/webreport/narrativeweb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/plugins/webreport/narrativeweb.py b/gramps/plugins/webreport/narrativeweb.py index bfabf748a..73c12e230 100644 --- a/gramps/plugins/webreport/narrativeweb.py +++ b/gramps/plugins/webreport/narrativeweb.py @@ -550,12 +550,12 @@ def copy_thumbnail(report, handle, photo, region=None): photo.get_mime_type(), region) mtime = os.stat(full_path).st_mtime - os.utime(from_path, (mtime, mtime)) if not os.path.isfile(from_path): from_path = CSS["Document"]["filename"] else: from_path = CSS["Document"]["filename"] report.copy_file(from_path, to_path) + os.utime(to_path, (mtime, mtime)) return to_path '''