def METHOD_NAME(self, filename):
    """AutoPkg is not very good at finding dependent files. This function will look
    inside the search directories for any supplied file """
    # if the supplied file is not a path, use the override directory or
    # recipe dir if no override
    recipe_dir = self.env.get("RECIPE_DIR")
    filepath = os.path.join(recipe_dir, filename)
    if os.path.exists(filepath):
        self.output(f"File found at: {filepath}")
        return filepath
    # if not found, search RECIPE_SEARCH_DIRS to look for it
    search_dirs = self.env.get("RECIPE_SEARCH_DIRS")
    for d in search_dirs:
        for path in Path(d).rglob(filename):
            matched_filepath = str(path)
            break
    if matched_filepath:
        self.output(f"File found at: {matched_filepath}")
        return matched_filepath