Absolute path fix

This commit is contained in:
Ankit Agrawal
2013-11-29 20:50:37 +01:00
committed by Johannes Schönberger
parent 3a0cebed9f
commit 94d9066700
+1 -1
View File
@@ -10,7 +10,7 @@ import os
from libc.math cimport sin, cos, round
pos = np.loadtxt(os.path.join(os.path.dirname(__file__),
pos = np.loadtxt(os.path.join(os.path.dirname(os.path.abspath(__file__)),
"orb_descriptor_positions.txt"), dtype=np.int8)
pos0 = np.ascontiguousarray(pos[:, :2])
pos1 = np.ascontiguousarray(pos[:, 2:])