From 54641033aa02df830d68544a647d8965292be086 Mon Sep 17 00:00:00 2001 From: Anna Wiggins Date: Thu, 21 Jan 2016 23:14:30 -0500 Subject: [PATCH] Implement the *proper* SSL hackery to get SSL requests working with pyinstaller. --- companion.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/companion.py b/companion.py index e0780c4..b2bfa1b 100644 --- a/companion.py +++ b/companion.py @@ -1,9 +1,14 @@ -import easygui from edmc import companion as c import platform companion_session = c.Session() +if platform.system() == 'Windows': + import easygui + import os + import requests.certs + os.environ['REQUESTS_CA_BUNDLE'] = requests.certs.where() + def login(username, password): try: companion_session.login(username, password)