<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _resolve_readme(self, path=None, silent=False):
 """ Returns the path if it's a file; otherwise, looks for a compatible README file in the directory specified by path. If path is None, the current working directory is used. If silent is set, the default relative filename will be returned if path is a directory or None if it does not exist. Raises ReadmeNotFoundError if no compatible README file can be found and silent is False. """

        # Default to current working directory
        if path is None:
            path = '.'

        # Normalize the path
        path = os.path.normpath(path)

        # Resolve README file if path is a directory
        if os.path.isdir(path):
            return self._find_file(path, silent)

        # Return path if file exists or if silent
        if silent or os.path.exists(path):
            return path

        raise ReadmeNotFoundError(path, 'File not found: ' + path)