Unverified Commit c73a21b3 authored by gmhewett's avatar gmhewett Committed by GitHub
Browse files

[python-package] Follow symlinks to lib_lightgbm.so in library-loading (#6977)

parent b7ceb3fe
......@@ -26,7 +26,7 @@ except ImportError:
pass
_version_path = Path(__file__).absolute().parent / "VERSION.txt"
_version_path = Path(__file__).resolve().parent / "VERSION.txt"
if _version_path.is_file():
__version__ = _version_path.read_text(encoding="utf-8").strip()
......
......@@ -18,7 +18,7 @@ def _find_lib_path() -> List[str]:
lib_path: list of str
List of all found library paths to LightGBM.
"""
curr_path = Path(__file__).absolute()
curr_path = Path(__file__).resolve()
dll_path = [
curr_path.parents[1],
curr_path.parents[0] / "bin",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment