From 8bf87fe5112fbec54db1496b5037c43e24bc76fe Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 25 Mar 2019 10:41:54 +0100 Subject: Fix one more get_url_for_data_file Change-Id: I19d89ce28977f5a5e0749f9fa10e169016e6e176 Reviewed-on: https://gerrit.libreoffice.org/69649 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sw/qa/uitest/findReplace/findSimilarity.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'sw') diff --git a/sw/qa/uitest/findReplace/findSimilarity.py b/sw/qa/uitest/findReplace/findSimilarity.py index 21775bd3e350..ac5b62fac499 100644 --- a/sw/qa/uitest/findReplace/findSimilarity.py +++ b/sw/qa/uitest/findReplace/findSimilarity.py @@ -12,12 +12,11 @@ from libreoffice.calc.document import get_cell_by_position from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.uihelper.common import get_state_as_dict, type_text from uitest.debug import sleep -# import org.libreoffice.unotest -# import pathlib -from uitest.path import get_srcdir_url +import org.libreoffice.unotest +import pathlib + def get_url_for_data_file(file_name): -# return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri() - return get_srcdir_url() + "/sw/qa/uitest/writer_tests/data/" + file_name + return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri() #Find similarities -- cgit