[Libreoffice-commits] core.git: uitest/uitest

Markus Mohrhard markus.mohrhard at googlemail.com
Mon Nov 21 10:43:08 UTC 2016


 uitest/uitest/path.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 16982944a1800963ee01f6e429f5330cc82b5710
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Mon Nov 21 11:40:05 2016 +0100

    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

diff --git a/uitest/uitest/path.py b/uitest/uitest/path.py
index 488520d..5a3aeff 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'))


More information about the Libreoffice-commits mailing list