#NEWLINE# def init( globalvars = None , show = False ) : #NEWLINE# #INDENT# '\n    Load profile INI\n    ' #NEWLINE# global config #NEWLINE# profileini = getprofileini ( ) #NEWLINE# if os . path . exists ( profileini ) : #NEWLINE# #INDENT# config = configparser . ConfigParser ( ) #NEWLINE# config . read ( profileini ) #NEWLINE# mgr = plugins_get_mgr ( ) #NEWLINE# mgr . update_configs ( k ) #NEWLINE# if show : #NEWLINE# #INDENT# for source in config : #NEWLINE# #INDENT# print ( ( '[%s] :' % source ) ) #NEWLINE# for k in config [ source ] : #NEWLINE# #INDENT# print ( ( '   %s : %s' % ( k , config [ source ] [ k ] ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# print ( 'Profile does not exist. So creating one' ) #NEWLINE# if ( not show ) : #NEWLINE# #INDENT# update ( globalvars ) #NEWLINE# #UNINDENT# #UNINDENT# print ( 'Complete init' )