Fix OpenSSL loading error on OS X #71

Merged
timbauman merged 1 commits from master into master 2013-03-25 04:17:04 +01:00
Showing only changes of commit 23a9f16933 - Show all commits

View File

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