def find_template_from_path(filepath, paths=None):
if paths is None or not paths:<EOL><INDENT>paths = [os.path.dirname(filepath), os.curdir]<EOL><DEDENT>for path in paths:<EOL><INDENT>candidate = os.path.join(path, filepath)<EOL>if os.path.exists(candidate):<EOL><INDENT>return candidate<EOL><DEDENT><DEDENT>LOGGER.warning("<STR_LIT>", filepath, paths)<EOL>return None<EOL>
Return resolved path of given template file

:param filepath: (Base) filepath of template file
:param paths: A list of template search paths