Skip to content

Commit

Permalink
Fix merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
matz-e committed Jul 23, 2024
1 parent d97d88c commit fab9a4a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pybind/pyembed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ void EmbeddedPythonLoader::load_libraries() {
assert_compatible_python_versions();

auto pybind_wraplib_env = PathHelper::get_wrapper_path();
std::string env_str = pybind_wraplib_env.string();
pybind_wrapper_handle = dlopen(env_str.c_str(), dlopen_opts);
pybind_wrapper_handle = dlopen(pybind_wraplib_env.c_str(), dlopen_opts);

Check warning on line 85 in src/pybind/pyembed.cpp

View check run for this annotation

Codecov / codecov/patch

src/pybind/pyembed.cpp#L84-L85

Added lines #L84 - L85 were not covered by tests
if (!pybind_wrapper_handle) {
const auto errstr = dlerror();
logger->critical("Tried but failed to load {}", pybind_wraplib_env);

Check warning on line 88 in src/pybind/pyembed.cpp

View check run for this annotation

Codecov / codecov/patch

src/pybind/pyembed.cpp#L88

Added line #L88 was not covered by tests
Expand Down

0 comments on commit fab9a4a

Please sign in to comment.