Set cacert environ path for windows distribution
This commit is contained in:
parent
bbfbcacc6a
commit
cca2a57c69
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue