def setconf(self, conf, rscpath, logger=None):
resource = self.pathresource(rscpath=rscpath, logger=logger)<EOL>if resource is None:<EOL><INDENT>resource = self.resource()<EOL><DEDENT>try:<EOL><INDENT>self._setconf(conf=conf, resource=resource, rscpath=rscpath)<EOL><DEDENT>except Exception as ex:<EOL><INDENT>if logger is not None:<EOL><INDENT>msg = '<STR_LIT>'.format(rscpath)<EOL>full_msg = '<STR_LIT>'.format(msg, ex, format_exc())<EOL>logger.error(full_msg)<EOL>reraise(self.Error, self.Error(msg))<EOL><DEDENT><DEDENT>
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.