summaryrefslogtreecommitdiff
path: root/unotest/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-02-09 17:33:26 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-02-09 17:34:06 +0100
commit49df6e0d8c9d0ef885b0230e53d6296ce0975078 (patch)
tree1508dd8c80e046da7df287c134c13bf12f2f6b51 /unotest/source
parent4bcfde41e7b854769f7db7412749d7f0f9ad977e (diff)
Adapt file URL hackery to Windows
Change-Id: Icee10aae97e9bcef7a3db7e966c1c4ef6780fc1d
Diffstat (limited to 'unotest/source')
-rw-r--r--unotest/source/python/org/libreoffice/unotest.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/unotest/source/python/org/libreoffice/unotest.py b/unotest/source/python/org/libreoffice/unotest.py
index 0acf05afe617..28f5eca0c16f 100644
--- a/unotest/source/python/org/libreoffice/unotest.py
+++ b/unotest/source/python/org/libreoffice/unotest.py
@@ -224,7 +224,10 @@ class UnoInProcess:
desktop = smgr.createInstanceWithContext("com.sun.star.frame.Desktop", self.getContext())
props = [("Hidden", True), ("ReadOnly", False), ("AsTemplate", False)]
loadProps = tuple([mkPropertyValue(name, value) for (name, value) in props])
- url = "file://" + file
+ if os.name == "nt":
+ url = "file:///" + file
+ else:
+ url = "file://" + file
self.xDoc = desktop.loadComponentFromURL(url, "_blank", 0, loadProps)
assert(self.xDoc)
return self.xDoc