mirror of
https://github.com/Z3Prover/z3
synced 2025-04-05 17:14:07 +00:00
fix z3 library search order
This commit is contained in:
parent
dc31478d82
commit
6330bf7d25
|
@ -1738,6 +1738,8 @@ _default_dirs = ['.',
|
|||
os.path.join(sys.prefix, 'lib'),
|
||||
None]
|
||||
_all_dirs = []
|
||||
# search the default dirs first
|
||||
_all_dirs.extend(_default_dirs)
|
||||
|
||||
if sys.version < '3':
|
||||
import __builtin__
|
||||
|
@ -1754,8 +1756,6 @@ for v in ('Z3_LIBRARY_PATH', 'PATH', 'PYTHONPATH'):
|
|||
lds = lp.split(';') if sys.platform in ('win32') else lp.split(':')
|
||||
_all_dirs.extend(lds)
|
||||
|
||||
_all_dirs.extend(_default_dirs)
|
||||
|
||||
_failures = []
|
||||
for d in _all_dirs:
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue