[pypy-svn] r28307 - pypy/dist/pypy/rpython/rctypes/tool
hpk at codespeak.net
hpk at codespeak.net
Mon Jun 5 11:31:33 CEST 2006
Author: hpk
Date: Mon Jun 5 11:31:33 2006
New Revision: 28307
Modified:
pypy/dist/pypy/rpython/rctypes/tool/util.py
Log:
add a load library helper
Modified: pypy/dist/pypy/rpython/rctypes/tool/util.py
==============================================================================
--- pypy/dist/pypy/rpython/rctypes/tool/util.py (original)
+++ pypy/dist/pypy/rpython/rctypes/tool/util.py Mon Jun 5 11:31:33 2006
@@ -90,6 +90,12 @@
return None
return _get_soname(lib)
+if "load" in dir(ctypes.cdll):
+ load_library = ctypes.cdll.load
+else:
+ load_library = ctypes.cdll.LoadLibrary
+
+
################################################################
# test code
More information about the Pypy-commit
mailing list