From 88bdc33051ba1bbd9d2b2b9383a41baa1670036f Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Thu, 21 Apr 2016 09:03:00 +0200 Subject: [PATCH] 9377: Narrated web : possible value not defined --- gramps/plugins/webreport/narrativeweb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/webreport/narrativeweb.py b/gramps/plugins/webreport/narrativeweb.py index 61f862274..be4d877f3 100644 --- a/gramps/plugins/webreport/narrativeweb.py +++ b/gramps/plugins/webreport/narrativeweb.py @@ -2405,9 +2405,9 @@ class BasePage(object): newpath = self.report.build_url_fname(newpath, up=self.up) dest_dir = os.path.dirname(self.report.cur_fname) if dest_dir: - copypath = os.path.join(dest_dir, newpath) + newpath = os.path.join(dest_dir, newpath) self.report.copy_file(media_path_full( - self.report.database, media.get_path()), copypath) + self.report.database, media.get_path()), newpath) tmp += Html("li", self.media_link(media_handle, newpath, media.get_description(),