Skip to content

Commit

Permalink
Make import path right
Browse files Browse the repository at this point in the history
  • Loading branch information
metab0t committed Jun 13, 2024
1 parent ea29163 commit 7af1f5f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/copt_model_ext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ extern void bind_copt_constants(nb::module_ &m);

NB_MODULE(copt_model_ext, m)
{
m.import_("core_ext");
m.import_("pyoptinterface._src.core_ext");

m.def("is_library_loaded", &copt::is_library_loaded);
m.def("load_library", &copt::load_library);
Expand Down
2 changes: 1 addition & 1 deletion lib/gurobi_model_ext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ extern void bind_gurobi_constants(nb::module_ &m);

NB_MODULE(gurobi_model_ext, m)
{
m.import_("core_ext");
m.import_("pyoptinterface._src.core_ext");

m.def("is_library_loaded", &gurobi::is_library_loaded);
m.def("load_library", &gurobi::load_library);
Expand Down
2 changes: 1 addition & 1 deletion lib/highs_model_ext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ extern void bind_highs_constants(nb::module_ &m);

NB_MODULE(highs_model_ext, m)
{
m.import_("core_ext");
m.import_("pyoptinterface._src.core_ext");

m.def("is_library_loaded", &highs::is_library_loaded);
m.def("load_library", &highs::load_library);
Expand Down
4 changes: 2 additions & 2 deletions lib/ipopt_model_ext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ namespace nb = nanobind;

NB_MODULE(ipopt_model_ext, m)
{
m.import_("core_ext");
m.import_("nlcore_ext");
m.import_("pyoptinterface._src.core_ext");
m.import_("pyoptinterface._src.nlcore_ext");

m.def("is_library_loaded", &ipopt::is_library_loaded);
m.def("load_library", &ipopt::load_library);
Expand Down
2 changes: 1 addition & 1 deletion lib/mosek_model_ext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ extern void bind_mosek_constants(nb::module_ &m);

NB_MODULE(mosek_model_ext, m)
{
m.import_("core_ext");
m.import_("pyoptinterface._src.core_ext");

m.def("is_library_loaded", &mosek::is_library_loaded);
m.def("load_library", &mosek::load_library);
Expand Down

0 comments on commit 7af1f5f

Please sign in to comment.