diff options
Diffstat (limited to 'unotest/source')
-rw-r--r-- | unotest/source/python/org/libreoffice/unotest.py | 5 |
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 |