From 02f150c51bf71da68a7e10c58d7c16636cc7007a Mon Sep 17 00:00:00 2001 From: New Future Date: Tue, 23 Apr 2019 20:00:18 +0800 Subject: [PATCH] fix(ssl): inject cert for windows nt #56 --- run.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/run.py b/run.py index 581e25a..95656e3 100755 --- a/run.py +++ b/run.py @@ -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')