attempt to fix win
svn: r7316
This commit is contained in:
parent
be4280437b
commit
f8f17bb239
@ -996,7 +996,8 @@ class XmlWriter(UpdateCallback):
|
|||||||
desc_text = ''
|
desc_text = ''
|
||||||
if self.strip_photos == 1:
|
if self.strip_photos == 1:
|
||||||
path = os.path.basename(path)
|
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:]
|
path = path[1:]
|
||||||
|
|
||||||
self.g.write('%s<file src="%s" mime="%s"%s/>\n'
|
self.g.write('%s<file src="%s" mime="%s"%s/>\n'
|
||||||
|
Loading…
Reference in New Issue
Block a user