I\'d like to map an int value pbs_errno declared as a global in the library libtorque.so using ctypes.
pbs_errno
libtorque.so
Currently I can load the library lik
There's a section in the ctypes docs about accessing values exported in dlls:
http://docs.python.org/library/ctypes.html#accessing-values-exported-from-dlls
e.g.
def pbs_errno(): return c_int.in_dll(libtorque, "pbs_errno")