spawn on windows is losing my arguments

Nigel Moriarty nw_moriarty at yahoo.com
Mon Feb 10 18:22:47 EST 2003


Folks

I use spawnv to run another Python script but on Windows where an item
is a space it's lost while on Linux it's retained.

Any ideas if this a bug or feature?

Nigel

import os, sys

cmd = ('python','F:\py\winspawned.py','1',' ','3')

os.spawnv(os.P_NOWAIT,
          sys.executable,
          cmd)




More information about the Python-list mailing list