diff --git a/src/GrampsDb/_WriteXML.py b/src/GrampsDb/_WriteXML.py index bf2c582cd..c65a7caf9 100644 --- a/src/GrampsDb/_WriteXML.py +++ b/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'