DLL path fix in frozen mode

Addresses #152
This commit is contained in:
mailchuck 2016-01-20 22:31:15 +01:00
parent 313ede4487
commit d486b251a5
Signed by untrusted user who does not match committer: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -87,7 +87,7 @@ def check_openssl():
paths = ['libeay32.dll']
if getattr(sys, 'frozen', False):
import os.path
paths.append(os.path.join(sys._MEIPASS, 'libeay32.dll'))
paths.insert(0, os.path.join(sys._MEIPASS, 'libeay32.dll'))
else:
paths = ['libcrypto.so']
if sys.platform == 'darwin':