[twill] Disable prints

Titus Brown titus at caltech.edu
Mon May 29 22:17:18 PDT 2006


-> Is it possible to disable the prints to stdout made by the functions
-> in twill.commands? I tried
-> 
-> import twill.commands
-> twill.commands.OUT = file( '/dev/null' )
-> 
-> But that didn't work. Thanks in advance.

Hmm, I'm not sure why setting 'OUT' doesn't work.  But you can do this:

import twill
from cStringIO import StringIO

twill.set_output(StringIO())

cheers,
--titus



More information about the twill mailing list