attempt to fix win

svn: r7316
This commit is contained in:
Don Allingham 2006-09-12 19:21:40 +00:00
parent be4280437b
commit f8f17bb239

View File

@ -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<file src="%s" mime="%s"%s/>\n'