Skip to content

Commit 93cac2e

Browse files
find the library by name, not path, LOL (#271)
1 parent 50320bd commit 93cac2e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

python/trinsicokapi/wrapper.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ def find_native_lib() -> str:
4545
return lib_path
4646
lib_name = "okapi"
4747
# Allow for manual override and then manually check, since LINUX Python doesn't always work. :(
48-
found_lib_path = _check_path(os.getenv('LD_LIBRARY_PATH', ''), lib_name) \
49-
or find_library(lib_path)
48+
found_lib_path = _check_path(os.getenv('LD_LIBRARY_PATH', ''), lib_name) or find_library(lib_name)
5049
return found_lib_path
5150

5251

0 commit comments

Comments
 (0)