def get_html_xml_path(path, build_name):
    """Parse and replace $BUILD_NAME variable in the path.

    Args:
        path(str):  path to html report
        build_name(str):  software build number

    Returns:
        str: modified path to html report

    """
    try:
        return path.replace("__BUILD_NAME__", build_name)
    except AttributeError:
        return "undetermined"