def wsgi_app(config_file):
    """wsgi application"""
    from mercurial import demandimport
    demandimport.enable()
    from mercurial.hgweb.hgwebdir_mod import hgwebdir
    application = hgwebdir(config_file)
    return application
