#NEWLINE# def _handle_generic_set_env_vars( non_default_options ) : #NEWLINE# #INDENT# if ( not hasattr ( non_default_options , 'env_settings' ) ) : #NEWLINE# #INDENT# return non_default_options #NEWLINE# #UNINDENT# for pair in _escape_split ( ',' , non_default_options . env_settings ) : #NEWLINE# #INDENT# pair = _escape_split ( '=' , pair ) #NEWLINE# key = pair [ 0 ] #NEWLINE# value = True #NEWLINE# if ( len ( pair ) == 2 ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# value = _to_boolean ( pair [ 1 ] ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# value = pair [ 1 ] #NEWLINE# #UNINDENT# #UNINDENT# state . env [ key ] = value #NEWLINE# #UNINDENT# non_default_options_dict = vars ( non_default_options ) #NEWLINE# del non_default_options_dict [ 'env_settings' ] #NEWLINE# return Values ( non_default_options_dict )