Fix ooo file open for windows

This commit is contained in:
Jonathan Corwin 2011-03-07 23:12:31 +00:00
parent f4c549fc7d
commit ef00fcdc0b

View File

@ -135,8 +135,9 @@ class OooImport(SongImport):
Open the passed file in OpenOffice.org Impress
"""
if os.name == u'nt':
url = u'file:///' + filepath.replace(u'\\', u'/')
url = filepath.replace(u'\\', u'/')
url = url.replace(u':', u'|').replace(u' ', u'%20')
url = u'file:///' + url
else:
url = uno.systemPathToFileUrl(filepath)
properties = []