File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,14 @@ class DynamicLibrary
3030 bool try_load (const char *library)
3131 {
3232#if defined(_MSC_VER)
33- handle = static_cast <void *>(LoadLibraryExA (
34- library, NULL , LOAD_LIBRARY_SEARCH_DEFAULT_DIRS | LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR));
33+ handle = static_cast <void *>(LoadLibraryA (library));
34+
35+ if (handle == nullptr )
36+ {
37+ handle = static_cast <void *>(LoadLibraryExA (library, NULL ,
38+ LOAD_LIBRARY_SEARCH_DEFAULT_DIRS |
39+ LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR));
40+ }
3541
3642#else
3743 handle = dlopen (library, RTLD_NOW);
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"
44
55[project ]
66name = " pyoptinterface"
7- version = " 0.2.0 "
7+ version = " 0.2.1.dev1 "
88description = " Python interface to multiple optimization solvers"
99readme = " README.md"
1010requires-python = " >=3.8"
You can’t perform that action at this time.
0 commit comments