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])

-- 
Sybren A. Stüvel

[email protected]
http://stuvel.eu/

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to