315 |
spath.append(boost_lib_path) |
spath.append(boost_lib_path) |
316 |
p2name = '' |
p2name = '' |
317 |
p3name = '' |
p3name = '' |
318 |
|
p2res = '' |
319 |
|
p3res = '' |
320 |
for name in spath: |
for name in spath: |
321 |
try: |
try: |
322 |
l=os.listdir(name) |
l=os.listdir(name) |
|
|
|
323 |
import sys |
import sys |
324 |
if sys.version_info[0] == 3: |
if sys.version_info[0] == 3: |
325 |
string_type = str |
string_type = str |
326 |
else: |
else: |
327 |
string_type = basestring |
string_type = basestring |
|
|
|
|
p2res = '' |
|
|
p3res = '' |
|
328 |
for x in l: |
for x in l: |
329 |
if isinstance(x,string_type): |
if isinstance(x,string_type): |
330 |
if x.startswith('libboost_numpy2') and x.endswith('.so'): |
if x.startswith('libboost_numpy') and x.endswith('.so'): |
331 |
p2res = x |
p2res = x |
332 |
if x.startswith('libboost_numpy-py2') and x.endswith('.so'): |
if x.startswith('libboost_numpy-py2') and x.endswith('.so'): |
333 |
p2res = x |
p2res = x |