Python get version of C library when importing with ctypes -


i have c library compiled in different versions. i'm creating symbolic link, python program, particular version of library want. there way of getting version of library that's being loaded python?

here's how i'm loading c library

import os import ctypes c  path = os.path.dirname(os.path.abspath(__file__)) _foolib = c.cdll.loadlibrary(path + "/foolib/libfoo.so") 

here libfoo.so symbolically linked of libfoo.so.x.y.z. don't want change code point new library want change symbolic link.

thanks


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -