title: How to read output from subprocess without printing to terminal?
body: <p>I've searched fairly thoroughly for an answer, but haven't found any solutions to this.</p>
  
  <p>I need to execute a child process only momentarily to print its version information.  If run from the command line, it's simply </p>
  
  <pre><code>.\bin\application.exe --version
  </code></pre>
  
  <p>and version information is printed to the terminal.  I'd like to capture that information in a string.  I've been trying out variants of</p>
  
  <pre><code>args = ("path\to\application.exe", "--version")
  subprocess.Popen(args, stdout=subprocess.PIPE).communicate()[0]
  </code></pre>
  
  <p>with no success.  I also need this not to print the output to the terminal, if possible.  What can I do?</p>