Merge pull request #71 from timbauman/master

Fix OpenSSL loading error on OS X
This commit is contained in:
Jonathan Warren 2013-03-24 20:17:04 -07:00
commit 8b0252488e
1 changed files with 1 additions and 1 deletions

View File

@ -419,7 +419,7 @@ except:
lib_path = path.join(sys._MEIPASS, "libeay32.dll") lib_path = path.join(sys._MEIPASS, "libeay32.dll")
OpenSSL = _OpenSSL(lib_path) OpenSSL = _OpenSSL(lib_path)
except: except:
if 'linux' in sys.platform: if 'linux' in sys.platform or 'darwin' in sys.platform:
try: try:
from ctypes.util import find_library from ctypes.util import find_library
OpenSSL = _OpenSSL(find_library('ssl')) OpenSSL = _OpenSSL(find_library('ssl'))