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
|
from edmc import companion as c
|
||||||
import platform
|
import platform
|
||||||
|
|
||||||
companion_session = c.Session()
|
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):
|
def login(username, password):
|
||||||
try:
|
try:
|
||||||
companion_session.login(username, password)
|
companion_session.login(username, password)
|
||||||
|
|
Reference in New Issue
Block a user