Skip to content

Commit 07a3170

Browse files
black and flake8 fixes
1 parent 35bb8e3 commit 07a3170

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/build-python.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ jobs:
6565
shell: pwsh
6666
working-directory: python
6767
env:
68-
LD_LIBRARY_PATH: "${{ github.workspace }}/libs"
6968
API_GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}
7069
- name: Upload Unit Test Results - Python
7170
if: always()

python/trinsicokapi/wrapper.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,14 @@ def find_native_lib() -> str:
5656
lib_name = "okapi"
5757
# Allow for manual override and then manually check,
5858
# since LINUX Python doesn't always work. :(
59-
found_lib_path = _check_path(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'libs')), lib_name) or \
60-
_check_path(os.getenv('LD_LIBRARY_PATH', ''), lib_name) or find_library(lib_name)
59+
found_lib_path = (
60+
_check_path(
61+
os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'libs')),
62+
lib_name,
63+
)
64+
or _check_path(os.getenv('LD_LIBRARY_PATH', ''), lib_name)
65+
or find_library(lib_name)
66+
)
6167
return found_lib_path
6268

6369

0 commit comments

Comments
 (0)