From d2d1751c03dc026389aba9c10052e8e6a768996d Mon Sep 17 00:00:00 2001 From: Jiaming Yuan Date: Wed, 13 Dec 2023 14:20:30 +0800 Subject: [PATCH] [backport][py] Use the first found native library. (#9860) (#9879) --- python-package/xgboost/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python-package/xgboost/core.py b/python-package/xgboost/core.py index 53381f5e2de3..2910dee2d587 100644 --- a/python-package/xgboost/core.py +++ b/python-package/xgboost/core.py @@ -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