From 8ba3e7fbe5117af687b14ce36c318bfdb6cd3de8 Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Fri, 2 Apr 2010 09:11:17 +0000 Subject: [PATCH] Fix of issue 2740. svn: r14998 --- src/plugins/export/ExportXml.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/plugins/export/ExportXml.py b/src/plugins/export/ExportXml.py index cc76bd341..f1dd45165 100644 --- a/src/plugins/export/ExportXml.py +++ b/src/plugins/export/ExportXml.py @@ -59,6 +59,7 @@ import gen.lib from gen.updatecallback import UpdateCallback from gen.db.exceptions import DbWriteFailure import const +import constfunc from QuestionDialog import ErrorDialog from ExportOptions import WriterOptionBox import gen.proxy @@ -1101,7 +1102,10 @@ class GrampsXmlWriter(UpdateCallback): elif self.strip_photos == 2 and (len(path)>0 and os.path.isabs(path)): drive, path = os.path.splitdrive(path) path = path[1:] - + if constfunc.win(): + # Always export path with \ replaced with /. Otherwise import + # from Windows to Linux of gpkg's path to images does not work. + path = path.replace('\\','/') self.g.write('%s\n' % (" "*(index+1), self.fix(path), mime_type, desc_text)) self.write_attribute_list(obj.get_attribute_list())