Skip to content

Commit b177b31

Browse files
committed
Update python library search logic
1 parent 0023d03 commit b177b31

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python/cryptoauthlib/library.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ def load_cryptoauthlib(lib=None):
9999
library_file = _force_local_library()
100100
_CRYPTO_LIB = cdll.LoadLibrary(library_file)
101101
except:
102-
raise LibraryLoadError('Unable to find cryptoauthlib. You may need to reinstall')
102+
try:
103+
_CRYPTO_LIB = cdll.LoadLibrary(_force_local_library())
104+
except:
105+
raise LibraryLoadError('Unable to find cryptoauthlib. You may need to reinstall')
103106

104107

105108

0 commit comments

Comments
 (0)