def setup(app, cfg):
    global disqus_config
    disqus_config = cfg
    if 'shortname' not in disqus_config:
        raise RuntimeError("Missing 'shortname' config key in disqus config")
    
    app.jinja_env.globals['comments'] = template_comments
dataset/ETHPy150Open jarus/flask-rst/flaskrst/modules/disqus.py/setup/original