title: Executing subprocess from Python without opening Windows Command Prompt
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1813872/running-a-process-in-pythonw-with-popen-without-a-console">Running a process in pythonw with Popen without a console</a><br>
    <a href="https://stackoverflow.com/questions/3390762/how-do-i-eliminate-windows-consoles-from-spawned-processes-in-python-2-7">How do I eliminate Windows consoles from spawned processes in Python (2.7)?</a>  </p>
  </blockquote>
  
  
  
  <p>I have a Python program that calls a separate number-crunching program (written in C) as a subprocess several times (using subprocess.check_call). It works great on Linux, and it works great on Windows too except for one little thing: every time it calls the subprocess a Command Prompt window is created and then soon destroyed when the subprocess exits.</p>
  
  <p>This doesn't affect the computation at all, but it's very annoying because this window keeps flashing on and off the screen, and it makes it difficult to do other things on the computer because the new Command Prompt window can steal keyboard focus.</p>
  
  <p>How can I simply execute the subprocess (which has no GUI), and prevent the Command Prompt window from being created?</p>