3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-10 16:13:25 +00:00

Making z3 python look in its installation directory for the z3 lib

This commit is contained in:
Kevin Chung 2016-12-18 17:27:55 -05:00
parent 5083b1adee
commit e16577ff61

View file

@ -1611,7 +1611,7 @@ _lib = None
def lib(): def lib():
global _lib global _lib
if _lib is None: 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: for _dir in _dirs:
try: try:
init(_dir) init(_dir)