Use prusa-slicer executable dir to search for occt shared lib
This commit is contained in:
parent
1fd4659f0e
commit
3f8979c95f
3 changed files with 6 additions and 4 deletions
|
@ -6,6 +6,7 @@
|
|||
#include "libslic3r/Utils.hpp"
|
||||
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <boost/dll/runtime_symbol_info.hpp>
|
||||
|
||||
#include <string>
|
||||
#include <functional>
|
||||
|
@ -27,7 +28,7 @@ LoadStepFn get_load_step_fn()
|
|||
constexpr const char* fn_name = "load_step_internal";
|
||||
|
||||
if (!load_step_fn) {
|
||||
auto libpath = boost::filesystem::path(resources_dir()) / "plugins";
|
||||
auto libpath = boost::dll::program_location().parent_path();
|
||||
#ifdef _WIN32
|
||||
libpath /= "OCCTWrapper.dll";
|
||||
HMODULE module = LoadLibraryW(libpath.wstring().c_str());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue