fix(ssl): inject cert for windows nt

#56
This commit is contained in:
New Future
2019-04-23 20:00:18 +08:00
committed by GitHub
parent 9271824cba
commit 02f150c51b
+2 -3
View File
@@ -21,9 +21,8 @@ __version__ = "python@none-build"
if getattr(sys, 'frozen', False):
__version__ = "${BUILD_SOURCEBRANCHNAME}@${BUILD_DATE}"
if os.name != 'nt':
# https://github.com/pyinstaller/pyinstaller/wiki/Recipe-OpenSSL-Certificate
os.environ['SSL_CERT_FILE'] = os.path.join(sys._MEIPASS, 'lib', 'cert.pem')
# https://github.com/pyinstaller/pyinstaller/wiki/Recipe-OpenSSL-Certificate
os.environ['SSL_CERT_FILE'] = os.path.join(sys._MEIPASS, 'lib', 'cert.pem')
CACHE_FILE = os.path.join(tempfile.gettempdir(), 'ddns.cache')