def graft(self, wsgi_callable, script_name=''):
        """Mount a wsgi callable at the given script_name."""
        # Next line both 1) strips trailing slash and 2) maps "/" -> "".
        script_name = script_name.rstrip('/')
        self.apps[script_name] = wsgi_callable
Mount a wsgi callable at the given script_name.
cherrypy/_cptree.py