def set_win32_cert_path():
 if hasattr(sys, 'frozen'):
  prog_path = os.path.dirname(sys.executable)
  crt_path = os.path.join(prog_path, 'ca-certificates.crt')
 else:
  cur_path = os.path.dirname(__file__)
  crt_path = os.path.join(cur_path, 'packaging', 'datadog-agent', 'win32', 'install_files', 'ca-certificates.crt')
 import tornado.simple_httpclient
 log.info(('Windows certificate path: %s' % crt_path))
 tornado.simple_httpclient._DEFAULT_CA_CERTS = crt_path

def set_win32_cert_path ( ) : if hasattr ( sys , 'frozen' ) : prog_path = os . path . dirname ( sys . executable ) crt_path = os . path . join ( prog_path , 'ca-certificates.crt' ) else : cur_path = os . path . dirname ( __file__ ) crt_path = os . path . join ( cur_path , 'packaging' , 'datadog-agent' , 'win32' , 'install_files' , 'ca-certificates.crt' ) import tornado . simple_httpclient log . info ( ( 'Windows certificate path: %s' % crt_path ) ) tornado . simple_httpclient . _DEFAULT_CA_CERTS = crt_path
in order to use tornado .