Am 14.09.2010, 08:08 Uhr, schrieb Sybren A. Stüvel <[email protected]>:
On Tuesday 14 September 2010 00:08:40 [email protected] wrote:
I think quotes don't work always ?
For example when i have a dir like ""' how do i quote it ?
I would take out the middle man. Don't use the shell, unless you
really have to. If you just pass a list of arguments to
subprocess.Popen, they will be "received" by the application just as-
is. No escaping needed.
import subprocess
proc = subprocess.Popen([command, path])
My problem is that i also have commands that are together with paths so
cmd = "ls /home/user/test dir/".
And afaik if i don't use the shell i need to seperate command and path ?
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt