Implement the *proper* SSL hackery to get SSL requests working with pyinstaller.
This commit is contained in:
parent
3e68516afd
commit
54641033aa
|
@ -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)
|
||||
|
|
Reference in New Issue
Block a user