#NEWLINE# def __init__( self , config_file = None ) : #NEWLINE# #INDENT# if ( not config_file ) : #NEWLINE# #INDENT# config_file = consts . CONFIG_FILE #NEWLINE# #UNINDENT# if os . path . exists ( config_file ) : #NEWLINE# #INDENT# with open ( config_file ) as f : #NEWLINE# #INDENT# data = yaml . load ( f ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# raise errors . ConfigFileNotExists ( "Default config couldn't be found in {0}" . format ( data ) ) #NEWLINE# #UNINDENT# self . _data = data