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)