From 2ee3ec84b70df1a9e249d3b3bff9458fe3726cd4 Mon Sep 17 00:00:00 2001 From: shiyu1994 Date: Sat, 25 Nov 2023 13:24:44 +0800 Subject: [PATCH] [python-package] fix libpath.py (#6192) --- python-package/lightgbm/libpath.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python-package/lightgbm/libpath.py b/python-package/lightgbm/libpath.py index c096a6f1b5e2..21222228b0c2 100644 --- a/python-package/lightgbm/libpath.py +++ b/python-package/lightgbm/libpath.py @@ -16,8 +16,7 @@ def find_lib_path() -> List[str]: List of all found library paths to LightGBM. """ curr_path = Path(__file__).absolute() - dll_path = [curr_path, - curr_path.parents[1], + dll_path = [curr_path.parents[1], curr_path.parents[0] / 'bin', curr_path.parents[0] / 'lib'] if system() in ('Windows', 'Microsoft'):