Implement the *proper* SSL hackery to get SSL requests working with pyinstaller.

This commit is contained in:
Anna Rose 2016-01-21 23:14:30 -05:00
parent 3e68516afd
commit 54641033aa

View File

@ -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)