File: 0006-Fix-model-path-for-Python-example.patch

package info (click to toggle)
tinyobjloader 2.0.0~rc13%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,524 kB
  • sloc: cpp: 7,030; python: 120; sh: 57; makefile: 45
file content (21 lines) | stat: -rw-r--r-- 711 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: =?utf-8?q?Timo_R=C3=B6hling?= <timo.roehling@fkie.fraunhofer.de>
Date: Sun, 5 Apr 2020 14:26:04 +0200
Subject: Fix model path for Python example

---
 python/sample.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/sample.py b/python/sample.py
index 45c9761..09f6ba6 100644
--- a/python/sample.py
+++ b/python/sample.py
@@ -11,7 +11,7 @@ except:
         "NumPy not installed. Do not use numpy_*** API. If you encounter slow performance, see a performance tips for non-numpy API https://github.com/tinyobjloader/tinyobjloader/issues/275"
     )
 
-filename = "../models/cornell_box.obj"
+filename = "models/cornell_box.obj"
 
 if len(sys.argv) > 1:
     filename = sys.argv[1]