329 |
p3res = '' |
p3res = '' |
330 |
for x in l: |
for x in l: |
331 |
if isinstance(x,string_type): |
if isinstance(x,string_type): |
332 |
if x.startswith('libboost_numpy') and x.endswith('.so'): |
if x.startswith('libboost_numpy2') and x.endswith('.so'): |
333 |
|
p2res = x |
334 |
|
if x.startswith('libboost_numpy-py2') and x.endswith('.so'): |
335 |
p2res = x |
p2res = x |
336 |
if x.startswith('libboost_numpy3') and x.endswith('.so'): |
if x.startswith('libboost_numpy3') and x.endswith('.so'): |
337 |
p3res = x |
p3res = x |
338 |
|
if x.startswith('libboost_numpy3-py3') and x.endswith('.so'): |
339 |
|
p3res = x |
340 |
else: |
else: |
341 |
if x.startswith(b'libboost_numpy') and x.endswith(b'.so'): |
if x.startswith(b'libboost_numpy') and x.endswith(b'.so'): |
342 |
p2res = x |
p2res = x |
343 |
|
if x.startswith(b'libboost_numpy-py2') and x.endswith(b'.so'): |
344 |
|
p2res = x |
345 |
if x.startswith(b'libboost_numpy3') and x.endswith(b'.so'): |
if x.startswith(b'libboost_numpy3') and x.endswith(b'.so'): |
346 |
p3res = x |
p3res = x |
347 |
|
if x.startswith(b'libboost_numpy3-py3') and x.endswith('.so'): |
348 |
|
p3res = x |
349 |
except OSError: |
except OSError: |
350 |
pass |
pass |
351 |
|
|