summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-11-21 11:40:05 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-11-21 11:42:25 +0100
commit16982944a1800963ee01f6e429f5330cc82b5710 (patch)
tree23effb1912ddea76864246bef4b42caacaf77f8e /uitest
parent351751557b0e50816866381904be907745d918c4 (diff)
uitest: fix path to url conversion on windows
Our windows path is stored e.g. as D:/libo1 which os.path.path2url converts to D://libo1. UNO does not recognize the URL as a valid file URL. Change-Id: Iad4c4a3944d26312bb79bfeefaf55f697c0afd1c
Diffstat (limited to 'uitest')
-rw-r--r--uitest/uitest/path.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/uitest/uitest/path.py b/uitest/uitest/path.py
index 488520d6bbae..5a3aeff22ce4 100644
--- a/uitest/uitest/path.py
+++ b/uitest/uitest/path.py
@@ -14,7 +14,7 @@ def get_src_dir_fallback():
return os.path.abspath(os.path.join(current_dir, "../../"))
def path2url(path):
- return urljoin('file:', pathname2url(path))
+ return urljoin('file:', pathname2url(os.path.normpath(path)))
def get_workdir_url():
workdir_path = os.environ.get('WORKDIR', os.path.join(get_src_dir_fallback(), 'workdir'))