Skip to content

Commit

Permalink
Apply hotfix from 4.1.0 release (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 authored May 24, 2024
1 parent 5be2948 commit 8b1b31c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/treelite/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _load_lib():
os.add_dll_directory(
os.path.join(os.path.normpath(sys.base_prefix), "Library", "bin")
)
lib = ctypes.CDLL(lib_path[0], mode=ctypes.RTLD_GLOBAL)
lib = ctypes.cdll.LoadLibrary(lib_path[0])
lib.TreeliteGetLastError.restype = ctypes.c_char_p
lib.log_callback = _log_callback
lib.warn_callback = _warn_callback
Expand Down

0 comments on commit 8b1b31c

Please sign in to comment.