def change_HTTPS_KEY(https_key):
 if (https_key == ''):
  sickbeard.HTTPS_KEY = ''
  return True
 if (ek(os.path.normpath, sickbeard.HTTPS_KEY) != ek(os.path.normpath, https_key)):
  if helpers.makeDir(ek(os.path.dirname, ek(os.path.abspath, https_key))):
   sickbeard.HTTPS_KEY = ek(os.path.normpath, https_key)
   logger.log((u'Changed https key path to ' + https_key))
  else:
   return False
 return True

def change_HTTPS_KEY ( https_key ) : if ( https_key == '' ) : sickbeard . HTTPS_KEY = '' return True if ( ek ( os . path . normpath , sickbeard . HTTPS_KEY ) != ek ( os . path . normpath , https_key ) ) : if helpers . makeDir ( ek ( os . path . dirname , ek ( os . path . abspath , https_key ) ) ) : sickbeard . HTTPS_KEY = ek ( os . path . normpath , https_key ) logger . log ( ( u'Changed https key path to ' + https_key ) ) else : return False return True
replace https key file path .