Closed GoogleCodeExporter closed 9 years ago
It's because you call CommandLineToArgvW, and its purpose is to parse the
command line string to remove quotes and backslashes...
Original comment by wj32...@gmail.com
on 18 Oct 2010 at 5:17
Hints on what to use as replacement?
Original comment by g.rodola
on 18 Oct 2010 at 5:20
We're returning an array of process arguments, not a string... I would think
this is expected behavior. This is similar to what you get from sys.argv where
the arguments are already parsed, which is what CommandLineToArgvW is supposed
to do, and we return the corresponding array of strings as a Python list.
Original comment by jlo...@gmail.com
on 18 Oct 2010 at 6:44
Verified that the same thing happens on Linux and BSD/OSX.
Thinking back I guess it's ok to return strings without quotation marks as
well, also because that's what you would pass to subprocess.Popen in case you
want to attempt to restart the process, for example.
I'm going to close this out and modify the test case.
Original comment by g.rodola
on 19 Oct 2010 at 3:25
Original issue reported on code.google.com by
g.rodola
on 17 Oct 2010 at 8:17