Kaydet (Commit) 355c3078 authored tarafından Xisco Fauli's avatar Xisco Fauli

pywizards: absolutize fails in Windows with backslash

I don't have a way to test it in Windows, so I hope it fixed now

Change-Id: I0f24aadb26c0d091fa95d9fcc655fa876c4b18db
üst 97b583a7
...@@ -16,8 +16,9 @@ ...@@ -16,8 +16,9 @@
# the License at http://www.apache.org/licenses/LICENSE-2.0 . # the License at http://www.apache.org/licenses/LICENSE-2.0 .
# #
import uno import uno
import os.path
import traceback import traceback
from unohelper import absolutize, systemPathToFileUrl from unohelper import systemPathToFileUrl
from ..ui.event.CommonListener import TerminateListenerProcAdapter from ..ui.event.CommonListener import TerminateListenerProcAdapter
from ..common.Desktop import Desktop from ..common.Desktop import Desktop
...@@ -209,10 +210,8 @@ class OfficeDocument(object): ...@@ -209,10 +210,8 @@ class OfficeDocument(object):
else: else:
oStoreProperties = list(range(0)) oStoreProperties = list(range(0))
sPath = StorePath[:(StorePath.rfind("/") + 1)]
sFile = StorePath[(StorePath.rfind("/") + 1):]
xComponent.storeToURL( xComponent.storeToURL(
absolutize(systemPathToFileUrl(sPath), sFile), os.path.abspath(systemPathToFileUrl(StorePath)),
tuple(oStoreProperties)) tuple(oStoreProperties))
return True return True
except ErrorCodeIOException: except ErrorCodeIOException:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment