3
0
Fork 0
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:
Nikolaj Bjorner 2016-12-18 15:47:01 -08:00 committed by GitHub
commit 08f95bedf7

View file

@ -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)