[Idle-dev] spawn fix

Bruce Sherwood bas@andrew.cmu.edu
Mon, 24 Sep 2001 17:24:19 -0400


I found a bug that should be fixed by those working on the Idle source 
code. In spawn.py the Windows spawn routine should look like this:

  def spawn(bin, *args):
    nargs = [ '"'+bin+'"' ]   ## was nargs = [bin]
    for arg in args:
      nargs.append( '"'+arg+'"' )
    os.spawnv( os.P_NOWAIT, bin, nargs )

Without the surrounding quote marks os.spawnv fails to find the Python 
executor, if Python has been installed in Program Files (because this 
folder name contains a space).

Bruce Sherwood