1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
--- a/tests/generic.py
+++ b/tests/generic.py
@@ -158,9 +158,10 @@
# find the current absolute path using inspect
dir_current = os.path.dirname(os.path.abspath(os.path.expanduser(__file__)))
# the absolute path for our reference models
-dir_models = os.path.abspath(os.path.join(dir_current, "..", "models"))
+dir_models = os.path.abspath(os.path.join(dir_current, '../../../..', 'models'))
+
# the absolute path for our 2D reference models
-dir_2D = os.path.abspath(os.path.join(dir_current, "..", "models", "2D"))
+dir_2D = os.path.abspath(os.path.join(dir_current, "../../../..", "models", "2D"))
# the absolute path for our test data and truth
dir_data = os.path.abspath(os.path.join(dir_current, "data"))
--- a/tests/test_minimal.py
+++ b/tests/test_minimal.py
@@ -17,7 +17,7 @@
# the path of the current directory
_pwd = os.path.dirname(os.path.abspath(os.path.expanduser(__file__)))
# the absolute path for our reference models
-_mwd = os.path.abspath(os.path.join(_pwd, "..", "models"))
+_mwd = os.path.abspath(os.path.join(_pwd, "../../../..", "models"))
def get_mesh(file_name, **kwargs):
|