()
Load app callout templates from config file on disk

    Generator function defers file access until needed, acts like a
    constant thereafter.
Load app callout templates from config file on disk
Load app callout templates from config file on disk
def _app_callout_templates():
    """Load app callout templates from config file on disk

    Generator function defers file access until needed, acts like a
    constant thereafter.
    """
    path = os.path.join(
        os.path.dirname(__file__),
        'static', 'app_manager', 'json', 'vellum-app-callout-templates.yaml'
    )
    if os.path.exists(path):
        with open(path, encoding='utf-8') as f:
            data = yaml.safe_load(f)
    else:
        logger.info("not found: %s", path)
        data = []
    while True:
        yield data
def _app_callout_templates ( ) : path = os . path . join ( os . path . dirname ( __file__ ) , 'static' , 'app_manager' , 'json' , 'vellum-app-callout-templates.yaml' ) if os . path . exists ( path ) : with open ( path , encoding = 'utf-8' ) as f : data = yaml . safe_load ( f ) else : logger . info ( "not found: %s" , path ) data = [ ] while True : yield data