diff --git a/ChangeLog b/ChangeLog index cd690d551..54c03d8ce 100644 --- a/ChangeLog +++ b/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/src/ReadGedcom.py b/src/ReadGedcom.py index a8d423b50..5ba48bd76 100644 --- a/src/ReadGedcom.py +++ b/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())