Not enough arguments for format string

James spiralx at gmail.com
Mon Nov 14 18:23:56 CET 2005


Missing a comma there :)

On 14/11/05, johnnie pittman <johnnie.pittman at gmail.com> wrote:
>  So the line above should be:
>
>  os.system('open -a X11.app; cd ~/; printenv; DISPLAY=:0.0; export
>  DISPLAY;  echo %s | sudo -S %s; sudo -k'  % (password binpath))
>
>  try that.

os.system('open -a X11.app; cd ~/; printenv; DISPLAY=:0.0; export
 DISPLAY;  echo %s | sudo -S %s; sudo -k'  % (password, binpath))



More information about the Python-list mailing list