title: os.exec on Windows
body: <p>I have a script that calls <code>os.execvp</code> into another Python instance. After doing this, I appear to be attached to a <code>cmd.exe</code> instance, not the Python instance I just created. The Python instance responds to <kbd>Ctrl+C</kbd> however.</p>
  
  <pre><code>H:\bin&gt;Python 3.2.1 (default, Jul 10 2011, 21:51:15) [MSC v.1500
   32 bit (Intel)] on win32
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; print('hi')
  Can't find file ('hi')
  
  H:\bin&gt;
  
  H:\bin&gt;
  KeyboardInterrupt
  &gt;&gt;&gt; echo hi
  hi
  </code></pre>
  
  <p>The call to <code>exec</code>:</p>
  
  <pre><code>from sys import argv
  os.execvp('python', argv)
  </code></pre>
  
  <p>How do I replace the original Python instance with the new one, as per the behaviour one might see on Linux?</p>