From 8f2d1ff0f745b056799a783ca973bd6d579b5bfc Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 15 Jan 2020 18:23:51 +0100 Subject: convwatch: handle Win32 absolute path as directory Change-Id: I5952665d14b2cee64f40db69dbb9508b1abb97bd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86871 Tested-by: Jenkins Reviewed-by: Michael Stahl --- bin/convwatch.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/convwatch.py b/bin/convwatch.py index 51a4f55dee6b..55849fdfb081 100644 --- a/bin/convwatch.py +++ b/bin/convwatch.py @@ -319,7 +319,10 @@ class LoadPrintFileTest: log("Time: " + str(start) + " Loading document: " + self.file) xDoc = None try: - url = "file://" + quote(self.file) + if os.name == 'nt' and self.file[1] == ':': + url = "file:///" + self.file[0:2] + quote(self.file[2:]) + else: + url = "file://" + quote(self.file) xDoc = loadFromURL(xContext, url) printDoc(xContext, xDoc, url + self.prtsuffix) finally: -- cgit