From fab9a4ae55aafe6010550808730cde2207ee508c Mon Sep 17 00:00:00 2001 From: Matthias Wolf Date: Tue, 23 Jul 2024 10:06:33 +0200 Subject: [PATCH] Fix merge. --- src/pybind/pyembed.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pybind/pyembed.cpp b/src/pybind/pyembed.cpp index 001e72b93..1c38813d8 100644 --- a/src/pybind/pyembed.cpp +++ b/src/pybind/pyembed.cpp @@ -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); if (!pybind_wrapper_handle) { const auto errstr = dlerror(); logger->critical("Tried but failed to load {}", pybind_wraplib_env);