<s> '''<STR_LIT>''' <EOL> from __future__ import absolute_import <EOL> import os <EOL> import cherrypy <EOL> def bootstrap_app ( ) : <EOL> '''<STR_LIT>''' <EOL> from salt . netapi . rest_cherrypy import app <EOL> import salt . config <EOL> __opts__ = salt . config . client_config ( <EOL> os . environ . get ( '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> return app . get_app ( __opts__ ) <EOL> def get_application ( * args ) : <EOL> '''<STR_LIT>''' <EOL> opts_tuple = args <EOL> def wsgi_app ( environ , start_response ) : <EOL> root , _ , conf = opts_tuple or bootstrap_app ( ) <EOL> cherrypy . config . update ( { '<STR_LIT>' : '<STR_LIT>' } ) <EOL> cherrypy . tree . mount ( root , '<STR_LIT:/>' , conf ) <EOL> return cherrypy . tree ( environ , start_response ) <EOL> return wsgi_app <EOL> application = get_application ( ) </s>
