summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/document/OfficeDocument.py
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2012-12-17 19:53:03 +0100
committerXisco Fauli <anistenis@gmail.com>2012-12-17 19:56:16 +0100
commit355c30789e311aa13d7421ce653dc80a9030c2e2 (patch)
treee1ce11f98ab61a24b90127513b758556b485b53a /wizards/com/sun/star/wizards/document/OfficeDocument.py
parent97b583a7bfb5dc9000290c3bdc8df8751a97d65d (diff)
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
Diffstat (limited to 'wizards/com/sun/star/wizards/document/OfficeDocument.py')
-rw-r--r--wizards/com/sun/star/wizards/document/OfficeDocument.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/wizards/com/sun/star/wizards/document/OfficeDocument.py b/wizards/com/sun/star/wizards/document/OfficeDocument.py
index 85c49bc4c2ff..75d7d725b1dc 100644
--- a/wizards/com/sun/star/wizards/document/OfficeDocument.py
+++ b/wizards/com/sun/star/wizards/document/OfficeDocument.py
@@ -16,8 +16,9 @@
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
import uno
+import os.path
import traceback
-from unohelper import absolutize, systemPathToFileUrl
+from unohelper import systemPathToFileUrl
from ..ui.event.CommonListener import TerminateListenerProcAdapter
from ..common.Desktop import Desktop
@@ -209,10 +210,8 @@ class OfficeDocument(object):
else:
oStoreProperties = list(range(0))
- sPath = StorePath[:(StorePath.rfind("/") + 1)]
- sFile = StorePath[(StorePath.rfind("/") + 1):]
xComponent.storeToURL(
- absolutize(systemPathToFileUrl(sPath), sFile),
+ os.path.abspath(systemPathToFileUrl(StorePath)),
tuple(oStoreProperties))
return True
except ErrorCodeIOException: