code: def setconf(self, conf, rscpath, logger=None):
          
  
          resource = self.pathresource(rscpath=rscpath, logger=logger)
  
          if resource is None:
              resource = self.resource()
  
          try:
              self._setconf(conf=conf, resource=resource, rscpath=rscpath)
  
          except Exception as ex:
              if logger is not None:
                  msg = 'Error while setting conf to {0}.'.format(rscpath)
                  full_msg = '{0} {1}: {2}'.format(msg, ex, format_exc())
                  logger.error(full_msg)
                  reraise(self.Error, self.Error(msg))
docs: Set input conf in input path.
  
          :param Configuration conf: conf to write to path.
          :param str rscpath: specific resource path to use.
          :param Logger logger: used to log info/errors.
          :param bool error: raise catched errors.
          :raises: ConfDriver.Error in case of error and input error.