From a993db0e42571b4043694909aa6ed9c29085d252 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Wed, 26 Dec 2001 03:11:44 +0000 Subject: [PATCH] Fixed building of paths for shutil.copy svn: r664 --- gramps/src/plugins/WebPage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/src/plugins/WebPage.py b/gramps/src/plugins/WebPage.py index 840e8d51b..13075c689 100644 --- a/gramps/src/plugins/WebPage.py +++ b/gramps/src/plugins/WebPage.py @@ -311,12 +311,12 @@ class IndividualPage: self.doc.start_table("gallery","IndTable") for obj in my_list: try: + src = obj.getReference().getPath() + base = os.path.basename(src) shutil.copy(src,"%s/images/%s" % (self.dir,base)) self.doc.start_row() self.doc.start_cell("ImageCell") self.doc.start_paragraph("Data") - src = obj.getReference().getPath() - base = os.path.basename(src) self.doc.start_link("images/%s" % base) self.doc.add_photo(src,"row",1.5,1.5) self.doc.end_link()