wizards/com/sun/star/wizards/document/OfficeDocument.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
New commits: commit 7431458606db21d695b0b891f25d3617030bf0f4 Author: Xisco Fauli <aniste...@gmail.com> Date: Tue Dec 18 19:07:55 2012 +0100 pywizards: Fix finish in Windows one and for all Change-Id: I450e2f32a3579778163655b65cd112f952f0456f diff --git a/wizards/com/sun/star/wizards/document/OfficeDocument.py b/wizards/com/sun/star/wizards/document/OfficeDocument.py index 75d7d72..97197ab 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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits