def get_stdout(self, os_path=None, skip_sub_command=False):
sub_command = None if skip_sub_command else self.stdout_sub_command<EOL>out, path = self._get_out_and_path(<EOL>self.stdout, self.stdout_root, sub_command, os_path)<EOL>if hasattr(out, '<STR_LIT>'):<EOL><INDENT>return out.stdin<EOL><DEDENT>return out<EOL>
Returns a stdout-suitable file-like object based on the
optional os_path and optionally skipping any configured
sub-command.