def change_HTTPS_CERT(https_cert):
 if (https_cert == ''):
  sickbeard.HTTPS_CERT = ''
  return True
 if (ek(os.path.normpath, sickbeard.HTTPS_CERT) != ek(os.path.normpath, https_cert)):
  if helpers.makeDir(ek(os.path.dirname, ek(os.path.abspath, https_cert))):
   sickbeard.HTTPS_CERT = ek(os.path.normpath, https_cert)
   logger.log((u'Changed https cert path to ' + https_cert))
  else:
   return False
 return True

def change_HTTPS_CERT ( https_cert ) : if ( https_cert == '' ) : sickbeard . HTTPS_CERT = '' return True if ( ek ( os . path . normpath , sickbeard . HTTPS_CERT ) != ek ( os . path . normpath , https_cert ) ) : if helpers . makeDir ( ek ( os . path . dirname , ek ( os . path . abspath , https_cert ) ) ) : sickbeard . HTTPS_CERT = ek ( os . path . normpath , https_cert ) logger . log ( ( u'Changed https cert path to ' + https_cert ) ) else : return False return True
replace https certificate file path .