def set_win32_requests_ca_bundle_path():
 import requests.adapters
 if hasattr(sys, 'frozen'):
  prog_path = os.path.dirname(sys.executable)
  ca_bundle_path = os.path.join(prog_path, 'cacert.pem')
  requests.adapters.DEFAULT_CA_BUNDLE_PATH = ca_bundle_path
 log.info('Default CA bundle path of the requests library: {0}'.format(requests.adapters.DEFAULT_CA_BUNDLE_PATH))

def set_win32_requests_ca_bundle_path ( ) : import requests . adapters if hasattr ( sys , 'frozen' ) : prog_path = os . path . dirname ( sys . executable ) ca_bundle_path = os . path . join ( prog_path , 'cacert.pem' ) requests . adapters . DEFAULT_CA_BUNDLE_PATH = ca_bundle_path log . info ( 'Default CA bundle path of the requests library: {0}' . format ( requests . adapters . DEFAULT_CA_BUNDLE_PATH ) )
in order to allow requests to validate ssl requests with the packaged .