def show_task_log(parent, task): """Show the log file of the task.""" file = task.log_file if file.exists: frame_from_filepath(parent, file.path).Show() else: awx.showErrorMessage(parent=parent, message="Output file %s does not exist" % file.path)