summaryrefslogtreecommitdiff
path: root/uitest/demo_ui/handle_multiple_files.py
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-10-11 04:09:46 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-10-11 04:16:20 +0200
commitf6624944219da151c10c3c8b5decaa0abbef1b45 (patch)
tree98d40de8117811cdf15c3dc8dd6f1a623aa47f86 /uitest/demo_ui/handle_multiple_files.py
parent0ab45be62bc1ffcbdd13aca7375fdcd1bbccb79a (diff)
pathlib is only in python 3.4+
We still use 3.3 on windows. Change-Id: I32adabe1eb12d8803d61458fcb1a228b3ff045e0
Diffstat (limited to 'uitest/demo_ui/handle_multiple_files.py')
-rw-r--r--uitest/demo_ui/handle_multiple_files.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/uitest/demo_ui/handle_multiple_files.py b/uitest/demo_ui/handle_multiple_files.py
index ab56c5533d91..dd4cba7966dd 100644
--- a/uitest/demo_ui/handle_multiple_files.py
+++ b/uitest/demo_ui/handle_multiple_files.py
@@ -11,18 +11,13 @@ from libreoffice.uno.eventlistener import EventListener
from uitest.framework import UITestCase
from uitest.debug import sleep
+from uitest.path import get_srcdir_url
import time
import os
-import pathlib
-
-def get_data_dir():
- current_dir = os.path.dirname(os.path.realpath(__file__))
- return os.path.join(current_dir, "data")
def get_url_for_data_file(file_name):
- path = os.path.join(get_data_dir(), file_name)
- return pathlib.Path(path).as_uri()
+ return get_srcdir_url() + "/uitest/demo_ui/data/" + file_name
class HandleFiles(UITestCase):