diff options
author | Xisco Fauli <anistenis@gmail.com> | 2012-12-18 19:07:55 +0100 |
---|---|---|
committer | Xisco Fauli <anistenis@gmail.com> | 2012-12-18 19:09:04 +0100 |
commit | 7431458606db21d695b0b891f25d3617030bf0f4 (patch) | |
tree | fab28c5e3e7dd10ca01397babda8d1b700329e79 /wizards/com | |
parent | 09123760860f99756d37b70557d83f707fda6b17 (diff) |
pywizards: Fix finish in Windows one and for all
Change-Id: I450e2f32a3579778163655b65cd112f952f0456f
Diffstat (limited to 'wizards/com')
-rw-r--r-- | wizards/com/sun/star/wizards/document/OfficeDocument.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/wizards/com/sun/star/wizards/document/OfficeDocument.py b/wizards/com/sun/star/wizards/document/OfficeDocument.py index 75d7d725b1dc..97197ab2d478 100644 --- a/wizards/com/sun/star/wizards/document/OfficeDocument.py +++ b/wizards/com/sun/star/wizards/document/OfficeDocument.py @@ -16,9 +16,8 @@ # the License at http://www.apache.org/licenses/LICENSE-2.0 . # import uno -import os.path import traceback -from unohelper import systemPathToFileUrl +from unohelper import systemPathToFileUrl, absolutize from ..ui.event.CommonListener import TerminateListenerProcAdapter from ..common.Desktop import Desktop @@ -210,9 +209,11 @@ class OfficeDocument(object): else: oStoreProperties = list(range(0)) + StorePath = systemPathToFileUrl(StorePath) + sPath = StorePath[:(StorePath.rfind("/") + 1)] + sFile = StorePath[(StorePath.rfind("/") + 1):] xComponent.storeToURL( - os.path.abspath(systemPathToFileUrl(StorePath)), - tuple(oStoreProperties)) + absolutize(sPath, sFile), tuple(oStoreProperties)) return True except ErrorCodeIOException: #Throw this exception when trying to save a file |