[Idle-dev] spawn fix
Bruce Sherwood
bas@andrew.cmu.edu
Mon, 24 Sep 2001 17:24:19 -0400
- Previous message: [Idle-dev] CVS: idle config-extensions.def,NONE,1.1 config-highlight.def,NONE,1.1 config-keys.def,NONE,1.1 config-main.def,NONE,1.1 configHandler.py,NONE,1.1 configDialog.py,1.9,1.10
- Next message: [Idle-dev] Nueva web corporativa de Iberosoft.com
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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
- Previous message: [Idle-dev] CVS: idle config-extensions.def,NONE,1.1 config-highlight.def,NONE,1.1 config-keys.def,NONE,1.1 config-main.def,NONE,1.1 configHandler.py,NONE,1.1 configDialog.py,1.9,1.10
- Next message: [Idle-dev] Nueva web corporativa de Iberosoft.com
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]