Skip to content

Commit

Permalink
[backport][py] Use the first found native library. (#9860) (#9879)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis authored Dec 13, 2023
1 parent e4ee4e7 commit d2d1751
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 d2d1751

Please sign in to comment.