I am trying to call an executable with qprocess
and pass some arguments which might (and most probably will) contain spaces (not all of them).
The executable is a python
script that has been packaged with Py2exe
. The python
script uses optparse
to parse the arguments.
If I call the py2exe.exe
in cmd.exe
the call is like this:
pythonExecutable.exe -aarg_a -barg_b -c"path with spaces" -darg_d
A call like this will be successful.
I want to do this through a Qt
application using Qprocess
, but I can't find a way to do it because Qprocess
will strip any quotes(""
) leaving the arguments broken wherever spaces appear.
I seem to be missing something, can anyone help with this issue?