diff --git a/tests/python/test_clqr_convergence_all.py b/tests/python/test_clqr_convergence_all.py index 500ac05..6e45310 100644 --- a/tests/python/test_clqr_convergence_all.py +++ b/tests/python/test_clqr_convergence_all.py @@ -15,7 +15,7 @@ import mim_solvers import numpy as np -python_path = pathlib.Path(".").absolute().parent.parent / "python" +python_path = pathlib.Path(__file__).absolute().parent.parent.parent / "python" os.sys.path.insert(1, str(python_path)) from csqp import CSQP # noqa: E402 diff --git a/tests/python/test_clqr_osqp.py b/tests/python/test_clqr_osqp.py index 2619e0d..b41da80 100644 --- a/tests/python/test_clqr_osqp.py +++ b/tests/python/test_clqr_osqp.py @@ -14,7 +14,7 @@ import numpy as np import unittest -python_path = pathlib.Path(".").absolute().parent.parent / "python" +python_path = pathlib.Path(__file__).absolute().parent.parent.parent / "python" os.sys.path.insert(1, str(python_path)) from csqp import CSQP # noqa: E402 diff --git a/tests/python/test_clqr_stagewise_admm.py b/tests/python/test_clqr_stagewise_admm.py index 05c7c2f..eeff63e 100644 --- a/tests/python/test_clqr_stagewise_admm.py +++ b/tests/python/test_clqr_stagewise_admm.py @@ -14,7 +14,7 @@ import mim_solvers import numpy as np -python_path = pathlib.Path(".").absolute().parent.parent / "python" +python_path = pathlib.Path(__file__).absolute().parent.parent.parent / "python" os.sys.path.insert(1, str(python_path)) from csqp import CSQP # noqa: E402 diff --git a/tests/python/test_lqr_problem.py b/tests/python/test_lqr_problem.py index 6ebd262..7b608b4 100644 --- a/tests/python/test_lqr_problem.py +++ b/tests/python/test_lqr_problem.py @@ -14,7 +14,7 @@ import mim_solvers import numpy as np -python_path = pathlib.Path(".").absolute().parent.parent / "python" +python_path = pathlib.Path(__file__).absolute().parent.parent.parent / "python" os.sys.path.insert(1, str(python_path)) from problems import create_lqr_problem # noqa: E402 diff --git a/tests/python/test_qp_solo_all.py b/tests/python/test_qp_solo_all.py index 3561598..2ea11d9 100644 --- a/tests/python/test_qp_solo_all.py +++ b/tests/python/test_qp_solo_all.py @@ -21,7 +21,7 @@ import pinocchio import pinocchio as pin -python_path = pathlib.Path(".").absolute().parent.parent / "python" +python_path = pathlib.Path(__file__).absolute().parent.parent.parent / "python" os.sys.path.insert(1, str(python_path)) from csqp import CSQP # noqa: E402 diff --git a/tests/python/test_qp_ur5_all.py b/tests/python/test_qp_ur5_all.py index 7ed1e76..718acd0 100644 --- a/tests/python/test_qp_ur5_all.py +++ b/tests/python/test_qp_ur5_all.py @@ -20,7 +20,7 @@ import mim_solvers import numpy as np -python_path = pathlib.Path(".").absolute().parent.parent / "python" +python_path = pathlib.Path(__file__).absolute().parent.parent.parent / "python" os.sys.path.insert(1, str(python_path)) from csqp import CSQP # noqa: E402 diff --git a/tests/python/test_sqp.py b/tests/python/test_sqp.py index 87ce0ab..3562987 100644 --- a/tests/python/test_sqp.py +++ b/tests/python/test_sqp.py @@ -14,7 +14,7 @@ import mim_solvers import numpy as np -python_path = pathlib.Path(".").absolute().parent.parent / "python" +python_path = pathlib.Path(__file__).absolute().parent.parent.parent / "python" os.sys.path.insert(1, str(python_path)) from problems import ( # noqa: E402 diff --git a/tests/python/test_sqp_taichi_convergence.py b/tests/python/test_sqp_taichi_convergence.py index d11bbf7..a31bde3 100644 --- a/tests/python/test_sqp_taichi_convergence.py +++ b/tests/python/test_sqp_taichi_convergence.py @@ -15,7 +15,7 @@ import numpy as np np.set_printoptions(precision=4, linewidth=180) -python_path = pathlib.Path(".").absolute().parent.parent / "python" +python_path = pathlib.Path(__file__).absolute().parent.parent.parent / "python" os.sys.path.insert(1, str(python_path)) from problems import create_taichi # noqa: E402 diff --git a/tests/python/test_sqp_ur5_convergence.py b/tests/python/test_sqp_ur5_convergence.py index 29366d8..8d4207d 100644 --- a/tests/python/test_sqp_ur5_convergence.py +++ b/tests/python/test_sqp_ur5_convergence.py @@ -14,7 +14,7 @@ import mim_solvers import numpy as np -python_path = pathlib.Path(".").absolute().parent.parent / "python" +python_path = pathlib.Path(__file__).absolute().parent.parent.parent / "python" os.sys.path.insert(1, str(python_path)) from problems import create_unconstrained_ur5 # noqa: E402 diff --git a/tests/python/test_ur5_csqp.py b/tests/python/test_ur5_csqp.py index cab1b8e..ffc33bc 100644 --- a/tests/python/test_ur5_csqp.py +++ b/tests/python/test_ur5_csqp.py @@ -16,7 +16,7 @@ import mim_solvers import numpy as np -python_path = pathlib.Path(".").absolute().parent.parent / "python" +python_path = pathlib.Path(__file__).absolute().parent.parent.parent / "python" os.sys.path.insert(1, str(python_path)) from csqp import CSQP # noqa: E402