#NEWLINE# def saltenviron( environ ) : #NEWLINE# #INDENT# "\n    Make Salt's opts dict and the APIClient available in the WSGI environ\n    " #NEWLINE# if ( '__opts__' not in locals ( ) ) : #NEWLINE# #INDENT# import salt.config #NEWLINE# __opts__ = salt . config . client_config ( os . environ . get ( 'SALT_MASTER_CONFIG' , '/etc/salt/master' ) ) #NEWLINE# #UNINDENT# environ [ 'SALT_OPTS' ] = __opts__ #NEWLINE# environ [ 'SALT_APIClient' ] = salt . netapi . NetapiClient ( __opts__ )