def add_path_to_jinja(flask_app, path):
    """
    To add path to jinja so it can be loaded
    :param flask_app:
    :param path:
    :return:
    """
    template_dir = path
    my_loader = jinja2.ChoiceLoader([
        flask_app.jinja_loader,
        jinja2.FileSystemLoader(template_dir)
    ])
    flask_app.jinja_loader = my_loader
To add path to jinja so it can be loaded
    :param flask_app:
    :param path:
    :return: