Skip to content

Commit

Permalink
[backport][py] Use the first found native library. (dmlc#9860)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Dec 13, 2023
1 parent 41ce8f2 commit 6f4e304
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python-package/xgboost/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ def _load_lib() -> ctypes.CDLL:
lib = ctypes.cdll.LoadLibrary(lib_path)
setattr(lib, "path", os.path.normpath(lib_path))
lib_success = True
break
except OSError as e:
os_error_list.append(str(e))
continue
Expand Down

0 comments on commit 6f4e304

Please sign in to comment.