mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 18:31:49 +00:00
Merge pull request #849 from ColdHeat/master
Making z3 python look in its installation directory for the z3 lib
This commit is contained in:
commit
08f95bedf7
|
@ -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…
Reference in a new issue