#NEWLINE# def _load_json_config( self , context ) : #NEWLINE# #INDENT# user_config_file = self . _get_raw_json_config ( context . resolver ) #NEWLINE# config_file = self . _generate_workgen_config ( user_config_file , context . output_directory ) #NEWLINE# with open ( config_file ) as fh : #NEWLINE# #INDENT# config_data = json . load ( fh , object_pairs_hook = OrderedDict ) #NEWLINE# #UNINDENT# self . _update_rt_app_config ( config_data ) #NEWLINE# self . duration = config_data [ 'global' ] . get ( 'duration' , 0 ) #NEWLINE# self . task_count = len ( config_data . get ( 'tasks' , [ ] ) ) #NEWLINE# with open ( config_file , 'w' ) as wfh : #NEWLINE# #INDENT# json . dump ( config_data , wfh , indent = 4 ) #NEWLINE# #UNINDENT# return config_file