From f8f17bb239a0a354082cffc96293fb85720d999a Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Tue, 12 Sep 2006 19:21:40 +0000 Subject: [PATCH] attempt to fix win svn: r7316 --- gramps2/src/GrampsDb/_WriteXML.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps2/src/GrampsDb/_WriteXML.py b/gramps2/src/GrampsDb/_WriteXML.py index bf2c582cd..c65a7caf9 100644 --- a/gramps2/src/GrampsDb/_WriteXML.py +++ b/gramps2/src/GrampsDb/_WriteXML.py @@ -996,7 +996,8 @@ class XmlWriter(UpdateCallback): desc_text = '' if self.strip_photos == 1: path = os.path.basename(path) - elif self.strip_photos == 2 and (len(path)>0 and path[0]) == '/': + elif self.strip_photos == 2 and (len(path)>0 and os.path.isabs(path)): + drive,path = os.path.splitdrive(path) path = path[1:] self.g.write('%s\n'