mirror of
https://github.com/Z3Prover/z3
synced 2025-04-06 09:34:08 +00:00
Fixed library path order in Python API.
This commit is contained in:
parent
d2c5e0e76a
commit
ef800d7b93
|
@ -1653,10 +1653,11 @@ else:
|
|||
if hasattr(builtins, "Z3_LIB_DIRS"):
|
||||
_all_dirs = builtins.Z3_LIB_DIRS
|
||||
|
||||
if 'Z3_LIBRARY_PATH' in os.environ:
|
||||
lp = os.environ['Z3_LIBRARY_PATH'];
|
||||
lds = lp.split(';') if sys.platform in ('win32') else lp.split(':')
|
||||
_all_dirs.extend(lds)
|
||||
for v in ('Z3_LIBRARY_PATH', 'PATH'):
|
||||
if v in os.environ:
|
||||
lp = os.environ[v];
|
||||
lds = lp.split(';') if sys.platform in ('win32') else lp.split(':')
|
||||
_all_dirs.extend(lds)
|
||||
|
||||
_all_dirs.extend(_default_dirs)
|
||||
|
||||
|
|
Loading…
Reference in a new issue