title: Opening Google App Engine in a Python script
body: <p>I'm fairly new to programming and decided to setup a simple python script that would open all the applications I use for webapp development. The code I am using is (for GAE):</p>
  
  <pre><code>google_appengine = r'C:\Applications\google_app_engine\launcher\GoogleAppEngineLauncher.exe'
  subprocess.Popen(google_appengine)
  </code></pre>
  
  <p>This works fine for the other programs I am opening, but I am unable to run any applications within App Engine after I have opened it this way. I get the following error in my App Engine log file:</p>
  
  <pre><code>Exception in thread Thread-2:
  Traceback (most recent call last):
  File "threading.pyc", line 486, in __bootstrap_inner
  File "launcher\taskthread.pyc", line 65, in run
  File "subprocess.pyc", line 587, in __init__
  File "subprocess.pyc", line 700, in _get_handles
  File "subprocess.pyc", line 745, in _make_inheritable
  WindowsError: [Error 6] The handle is invalid
  </code></pre>
  
  <p>I'm guessing it is the way subprocess.Popen() works, but I haven't been able to find any alternatives. I'm running Windows 7 if that makes a difference. Thanks for looking.</p>