Skip to content

Commit

Permalink
Update setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vsoftco committed Dec 1, 2023
1 parent dc532cc commit cb42ed6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,15 @@ def _load_shared_obj(name):
paths = []

# search typical locations
paths += [ctu.find_library(name)]
paths += [ctu.find_library("lib" + name)]
try:
paths += [ctu.find_library(name)]
except FileNotFoundError:
pass
try:
paths += [ctu.find_library("lib" + name)]
except FileNotFoundError:
pass

dll = ct.windll if platform.system() == "Windows" else ct.cdll

for path in paths:
Expand Down

0 comments on commit cb42ed6

Please sign in to comment.