Skip to content

Commit be6cf47

Browse files
hakehuangvsoftco
andauthored
fix searching issue (#77)
add lib to name twice is only need when first search is failure. otherwise it will fail on ubuntu environment Signed-off-by: Hake Huang <[email protected]> Co-authored-by: Vlad Gheorghiu <[email protected]>
1 parent 60a40a0 commit be6cf47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

oqs/oqs.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ def _load_shared_obj(name):
2525

2626
# search typical locations
2727
paths += [ctu.find_library(name)]
28-
paths += [ctu.find_library("lib" + name)]
28+
if not paths:
29+
paths += [ctu.find_library("lib" + name)]
2930
dll = ct.windll if platform.system() == "Windows" else ct.cdll
3031

3132
for path in paths:

0 commit comments

Comments
 (0)