def erase_script_name(environ, start_response):
    """Erase script name from the WSGI environment."""
    environ['SCRIPT_NAME'] = ''
    return cherrypy.tree(environ, start_response)
Erase script name from the WSGI environment.
cherrypy/test/modfastcgi.py