File: 01-fix-model-test-path.patch

package info (click to toggle)
trimesh 4.5.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 33,416 kB
  • sloc: python: 35,596; makefile: 96; javascript: 85; sh: 38
file content (26 lines) | stat: -rw-r--r-- 1,115 bytes parent folder | download
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):