From cfbd76b5e58431d9a7e036830f5ac4052206c3b1 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Fri, 23 Oct 2020 13:24:48 +0200 Subject: uitest: get_url_for_data_file -> pathlib.Path Change-Id: Ib8495528e44f6b1e1f9992cb38d38cca21cfee42 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104724 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- uitest/writer_tests7/goToPage.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uitest/writer_tests7/goToPage.py b/uitest/writer_tests7/goToPage.py index d20f042dfb9a..7c56791a9066 100644 --- a/uitest/writer_tests7/goToPage.py +++ b/uitest/writer_tests7/goToPage.py @@ -6,11 +6,11 @@ from uitest.framework import UITestCase from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.uihelper.common import get_state_as_dict -import time -from uitest.path import get_srcdir_url +import org.libreoffice.unotest +import pathlib def get_url_for_data_file(file_name): - return get_srcdir_url() + "/uitest/writer_tests/data/" + file_name + return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri() class GoToPage_dialog(UITestCase): -- cgit v1.2.3