Actually at ALL the path in the environnement variable and look for the openssl lib
This commit is contained in:
parent
4e388e5dc2
commit
32ddaed376
1 changed files with 6 additions and 4 deletions
|
@ -33,10 +33,12 @@ def getLibraryPath():
|
||||||
logging.debug("OpenSSL lib not found in: %s (%s)" % (lib_dir, err))
|
logging.debug("OpenSSL lib not found in: %s (%s)" % (lib_dir, err))
|
||||||
|
|
||||||
if "LD_LIBRARY_PATH" in os.environ:
|
if "LD_LIBRARY_PATH" in os.environ:
|
||||||
|
lib_dir_paths = os.environ["LD_LIBRARY_PATH"].split(":")
|
||||||
|
for path in lib_dir_paths:
|
||||||
try:
|
try:
|
||||||
return [lib for lib in os.listdir(os.environ["LD_LIBRARY_PATH"]) if "libcrypto.so.1.0" in lib][0]
|
return [lib for lib in os.listdir(path) if "libcrypto.so.1.0" in lib][0]
|
||||||
except Exception, err:
|
except Exception, err:
|
||||||
logging.debug("OpenSSL lib not found in: %s (%s)" % (lib_dir, err))
|
logging.debug("OpenSSL lib not found in: %s (%s)" % (path, err))
|
||||||
|
|
||||||
return (
|
return (
|
||||||
ctypes.util.find_library('ssl.so.1.0') or ctypes.util.find_library('ssl') or
|
ctypes.util.find_library('ssl.so.1.0') or ctypes.util.find_library('ssl') or
|
||||||
|
|
Loading…
Reference in a new issue