Make ca_path checks for frozen windows only

This commit is contained in:
David Amrhein 2016-08-03 10:16:14 -04:00
parent dd631328e0
commit 7d535ef7d1

View file

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