[python-win32] win32process.CreateProcess alternative that takes an array

Christopher Armstrong radix@twistedmatrix.com
Sat, 5 Apr 2003 21:04:38 -0500

Twisted uses win32process.CreateProcess for its Process running on
win32. This is bad, because CreateProcess needs a string - right now
we just to a " ".join on the arguments to the program, but obviously
that totally breaks when some of the arguments have spaces in them. Is
there an alternative to CreateProcess that takes a list of arguments
rather than a string? Is there even an unwrapped win32 call that takes
an array? I really don't want to mess with trying to automatically
quote the arguments that have spaces.

 Twisted | Christopher Armstrong: International Man of Twistery
  Radix  |          Release Manager,  Twisted Project
---------+     http://twistedmatrix.com/users/radix.twistd/