From 49df6e0d8c9d0ef885b0230e53d6296ce0975078 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 9 Feb 2015 17:33:26 +0100 Subject: Adapt file URL hackery to Windows Change-Id: Icee10aae97e9bcef7a3db7e966c1c4ef6780fc1d --- unotest/source/python/org/libreoffice/unotest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'unotest') 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 -- cgit v1.2.3