attempt to fix win
svn: r7316
This commit is contained in:
parent
4d6b599df9
commit
99965189fd
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user