#NEWLINE# def execute( self , env , args ) : #NEWLINE# #INDENT# ' Edits task configuration.\n\n            `env`\n                Runtime ``Environment`` instance.\n            `args`\n                Arguments object from arg parser.\n            ' #NEWLINE# task_name = args . task_name #NEWLINE# if ( not env . task . exists ( task_name ) ) : #NEWLINE# #INDENT# raise errors . TaskNotFound ( task_name ) #NEWLINE# #UNINDENT# if ( env . task . active and ( task_name == env . task . name ) ) : #NEWLINE# #INDENT# raise errors . ActiveTask #NEWLINE# #UNINDENT# task_config = env . task . get_config_path ( task_name ) #NEWLINE# if ( not _edit_task_config ( env , task_config , confirm = True ) ) : #NEWLINE# #INDENT# raise errors . FocusError ( 'Could not open task config: {0}' . format ( task_config ) )