summaryrefslogtreecommitdiff
path: root/uitest/writer_tests7/goToPage.py
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/writer_tests7/goToPage.py')
-rw-r--r--uitest/writer_tests7/goToPage.py6
1 files 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):