mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 00:55:31 +00:00
Making z3 python look in its installation directory for the z3 lib
This commit is contained in:
parent
5083b1adee
commit
e16577ff61
1 changed files with 1 additions and 1 deletions
|
@ -1611,7 +1611,7 @@ _lib = None
|
|||
def lib():
|
||||
global _lib
|
||||
if _lib is None:
|
||||
_dirs = ['.', pkg_resources.resource_filename('z3', 'lib'), os.path.join(sys.prefix, 'lib'), None]
|
||||
_dirs = ['.', os.path.dirname(os.path.abspath(__file__)), pkg_resources.resource_filename('z3', 'lib'), os.path.join(sys.prefix, 'lib'), None]
|
||||
for _dir in _dirs:
|
||||
try:
|
||||
init(_dir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue