Skip to content

Commit 6bb4850

Browse files
load from venv
1 parent 1ff7c37 commit 6bb4850

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

python/setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ exclude = tests
3030
# Recommend matching the black line length (default 88),
3131
# rather than using the flake8 default of 79:
3232
max-line-length = 88
33+
doctests = True
3334
extend-ignore =
3435
# See https://github.com/PyCQA/pycodestyle/issues/373
3536
E203,

python/trinsicokapi/wrapper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import ctypes
22
import os
33
import platform
4+
import sys
45
import threading
56
from ctypes import CDLL
67
from ctypes.util import find_library
@@ -61,6 +62,7 @@ def find_native_lib() -> str:
6162
os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'libs')),
6263
lib_name,
6364
)
65+
or _check_path(os.path.join(sys.prefix, 'libs'), lib_name)
6466
or _check_path(os.getenv('LD_LIBRARY_PATH', ''), lib_name)
6567
or find_library(lib_name)
6668
)

0 commit comments

Comments
 (0)