[ctypes-commit] ctypes/ctypes/test test_loading.py,1.13,1.14
Brought to you by:
theller
From: Thomas H. <th...@us...> - 2006-04-05 17:33:59
|
Update of /cvsroot/ctypes/ctypes/ctypes/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10113 Modified Files: test_loading.py Log Message: Use 'ldd' to find the libc to load. Index: test_loading.py =================================================================== RCS file: /cvsroot/ctypes/ctypes/ctypes/test/test_loading.py,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** test_loading.py 5 Apr 2006 17:13:52 -0000 1.13 --- test_loading.py 5 Apr 2006 17:33:52 -0000 1.14 *************** *** 15,20 **** for line in os.popen("ldd %s" % sys.executable): if "libc.so" in line: ! libc_name = line.split()[2] ! print "libc_name is", line break --- 15,23 ---- for line in os.popen("ldd %s" % sys.executable): if "libc.so" in line: ! if sys.platform == "openbsd3": ! libc_name = line.split()[4] ! else: ! libc_name = line.split()[2] ! ## print "libc_name is", libc_name break |