From 82e6acd2584326ffb3c2cedab4fdc22d2154951f Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Tue, 25 Jan 2005 23:08:37 +0000 Subject: [PATCH] * src/ReadGedcom.py (parse_person_object,parse_family_object): Use absolute path to work around what seems a gnomevfs issue. svn: r3965 --- gramps2/ChangeLog | 3 +++ gramps2/src/ReadGedcom.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index cd690d551..54c03d8ce 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -4,6 +4,9 @@ (on_show_plugin_status,build_plugin_menus): Pass itself to PluginStatus. * src/Plugins.py (PluginStatus.__init__): Set transent property. + * src/ReadGedcom.py (parse_person_object,parse_family_object): + Use absolute path to work around what seems a gnomevfs issue. + 2005-01-25 Eero Tamminen * src/plugins/StatisticsChart.py: - Comment out debug output diff --git a/gramps2/src/ReadGedcom.py b/gramps2/src/ReadGedcom.py index a8d423b50..5ba48bd76 100644 --- a/gramps2/src/ReadGedcom.py +++ b/gramps2/src/ReadGedcom.py @@ -1150,7 +1150,7 @@ class GedcomParser: photo = RelLib.MediaObject() photo.set_path(path) photo.set_description(title) - photo.set_mime_type(Utils.get_mime_type(path)) + photo.set_mime_type(Utils.get_mime_type(os.path.abspath(path))) self.db.add_object(photo, self.trans) self.media_map[path] = photo.get_handle() else: @@ -1192,7 +1192,7 @@ class GedcomParser: photo = RelLib.MediaObject() photo.set_path(path) photo.set_description(title) - photo.set_mime_type(Utils.get_mime_type(path)) + photo.set_mime_type(Utils.get_mime_type(os.path.abspath(path))) self.db.add_object(photo, self.trans) oref = RelLib.MediaRef() oref.set_reference_handle(photo.get_handle())