[Libreoffice-commits] .: Branch 'libreoffice-4-0' - wizards/com
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Dec 17 10:59:47 PST 2012
wizards/com/sun/star/wizards/document/OfficeDocument.py | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
New commits:
commit 9fc8010b757b6ea88370ad0065209e08656a9a76
Author: Xisco Fauli <anistenis at gmail.com>
Date: Mon Dec 17 19:53:03 2012 +0100
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
diff --git a/wizards/com/sun/star/wizards/document/OfficeDocument.py b/wizards/com/sun/star/wizards/document/OfficeDocument.py
index 1211d0b..2e892a4 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:
More information about the Libreoffice-commits
mailing list