3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-06 17:44:08 +00:00

Improve _find_lib() in Z3Py for Linux/OSX

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2012-10-02 12:31:45 -07:00
parent 11aa025805
commit 454fa7dcdd
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ def _find_lib():
winlibdir = 'x64' winlibdir = 'x64'
else: else:
winlibdir = 'bin' winlibdir = 'bin'
locs = [_dir, '%s%s..%s%s' % (_dir, os.sep, os.sep, winlibdir), '%s%s..%slib' % (_dir, os.sep, os.sep), '%s%s..%sexternal' % (_dir, os.sep, os.sep)] locs = [_dir, '%s%s..%s%s' % (_dir, os.sep, os.sep, winlibdir), '%s%s..%slib' % (_dir, os.sep, os.sep), '%s%s..%sexternal' % (_dir, os.sep, os.sep), '%s%s..%sbin%sexternal' % (_dir, os.sep, os.sep, os.sep)]
for loc in locs: for loc in locs:
for lib in libs: for lib in libs:
f = '%s%s%s' % (loc, os.sep, lib) f = '%s%s%s' % (loc, os.sep, lib)

View file

@ -11,7 +11,7 @@ def _find_lib():
winlibdir = 'x64' winlibdir = 'x64'
else: else:
winlibdir = 'bin' winlibdir = 'bin'
locs = [_dir, '%s%s..%s%s' % (_dir, os.sep, os.sep, winlibdir), '%s%s..%slib' % (_dir, os.sep, os.sep), '%s%s..%sexternal' % (_dir, os.sep, os.sep)] locs = [_dir, '%s%s..%s%s' % (_dir, os.sep, os.sep, winlibdir), '%s%s..%slib' % (_dir, os.sep, os.sep), '%s%s..%sexternal' % (_dir, os.sep, os.sep), '%s%s..%sbin%sexternal' % (_dir, os.sep, os.sep, os.sep)]
for loc in locs: for loc in locs:
for lib in libs: for lib in libs:
f = '%s%s%s' % (loc, os.sep, lib) f = '%s%s%s' % (loc, os.sep, lib)