From 7078b7dc3801765d519586ba0b145f88b1e1447b Mon Sep 17 00:00:00 2001 From: Anna Wiggins Date: Thu, 21 Jan 2016 15:13:33 -0500 Subject: [PATCH] Add some code for Windows to help SSL work. --- companion.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/companion.py b/companion.py index 12e8044..3e14500 100644 --- a/companion.py +++ b/companion.py @@ -1,6 +1,10 @@ -from edmc import companion as c -import platform import easygui +from edmc import companion as c +import os +import platform + +if platform.system() == 'Windows': + os.environ['REQUESTS_CA_BUNDLE'] = "requests/cacert.pem" companion_session = c.Session()