diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2020-01-15 18:23:51 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-01-16 12:17:07 +0100 |
commit | 8f2d1ff0f745b056799a783ca973bd6d579b5bfc (patch) | |
tree | 6310853215940b1b7f2cde3a74ef8f85ad7cac2e /bin | |
parent | 9982b1dd7b6aff9e0a35f7157491be120874196d (diff) |
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 <michael.stahl@cib.de>
Diffstat (limited to 'bin')
-rw-r--r-- | bin/convwatch.py | 5 |
1 files changed, 4 insertions, 1 deletions
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: |