def load_settings(self, settings):
        """Load settings from file"""
        with open(settings) as settings_file:
            settings_dict = simplejson.load(settings_file)
        for key, value in settings_dict.items():
            self.__setattr__(key, value)
def load_settings ( self , settings ) : with open ( settings ) as settings_file : settings_dict = simplejson . load ( settings_file ) for key , value in settings_dict . items ( ) : self . __setattr__ ( key , value )
Load settings from file