Fix relative pathing for cacert for win builds

This commit is contained in:
David Amrhein 2016-08-18 01:25:48 -04:00
parent ed2d2c6f86
commit 73dbe1de37

View file

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