summaryrefslogtreecommitdiff
path: root/uitest/calc_tests
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/calc_tests
parent0ab45be62bc1ffcbdd13aca7375fdcd1bbccb79a (diff)
pathlib is only in python 3.4+
We still use 3.3 on windows. Change-Id: I32adabe1eb12d8803d61458fcb1a228b3ff045e0
Diffstat (limited to 'uitest/calc_tests')
-rw-r--r--uitest/calc_tests/tdf96453.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/uitest/calc_tests/tdf96453.py b/uitest/calc_tests/tdf96453.py
index 020b901c3f6c..fb8e40454d3e 100644
--- a/uitest/calc_tests/tdf96453.py
+++ b/uitest/calc_tests/tdf96453.py
@@ -11,16 +11,13 @@ import os
import pathlib
from uitest.uihelper.common import get_state_as_dict
+from uitest.path import get_srcdir_url
+
from libreoffice.calc.document import get_sheet_from_doc
from libreoffice.calc.conditional_format import get_conditional_format_from_sheet
-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/calc_tests/data/" + file_name
class ConditionalFormatDlgTest(UITestCase):