Set cacert environ path for windows distribution

This commit is contained in:
David Amrhein 2016-07-30 22:52:49 -04:00
parent bbfbcacc6a
commit cca2a57c69

View file

@ -32,6 +32,9 @@ log = logging.getLogger(__name__)
REMOTE_SERVER = "www.google.com"
if getattr(sys, 'frozen', False):
os.environ["REQUESTS_CA_BUNDLE"] = os.path.join(os.getcwd(), "cacert.pem")
def test_internet_connection():
try: