Fix OpenSSL dll loading on Windows

This commit is contained in:
shortcutme 2019-07-18 03:33:56 +02:00
parent c9a2b86c16
commit 902a1b1c88
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ find_library_original = ctypes.util.find_library
def getOpensslPath():
if sys.platform.startswith("win"):
lib_path = os.path.dirname(os.path.abspath(__file__)) + "/../../dist/openssl/libeay32.dll"
lib_path = os.path.join(os.getcwd(), "tools/openssl/libeay32.dll")
elif sys.platform == "cygwin":
lib_path = "/bin/cygcrypto-1.0.0.dll"
elif os.path.isfile("../lib/libcrypto.so"): # ZeroBundle OSX