forked from openlp/openlp
Fix ooo file open for windows
This commit is contained in:
parent
f4c549fc7d
commit
ef00fcdc0b
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user