On Tuesday 14 September 2010 18:40:38 [email protected] wrote: > 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 ?
Yep, you can use the shlex module for that. But - only if you actually _know_ what the command is, and what its arguments are. For example, how would you know that the user isn't trying to run the "ls /home/usr/test" executable and pass it "dir/" as the first argument? -- Sybren A. Stüvel [email protected] http://stuvel.eu/
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
