mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
Fixed default library path order in Python API.
This commit is contained in:
parent
ef800d7b93
commit
bf563bbd5f
|
@ -1672,6 +1672,13 @@ for d in _all_dirs:
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
if _lib is None:
|
||||||
|
# If all else failed, ask the system to find it.
|
||||||
|
try:
|
||||||
|
_lib = ctypes.CDLL('libz3.%s' % _ext)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
if _lib is None:
|
if _lib is None:
|
||||||
print("Could not find libz3.%s; consider adding the directory containing it to" % _ext)
|
print("Could not find libz3.%s; consider adding the directory containing it to" % _ext)
|
||||||
print(" - your system's PATH environment variable,")
|
print(" - your system's PATH environment variable,")
|
||||||
|
|
Loading…
Reference in a new issue