[Chimera-users] save reply log from chimera python script

Tom Goddard goddard at cgl.ucsf.edu
Wed Oct 8 19:33:49 PDT 2008

Hi Katryna,

  I don't think there is a command to save the text in the reply log.  
In the Python function the variable path is the path to the file, for 
example "/tmp/mylog.txt".


Katryna Cisek wrote:
> Hi Chimera users,
> Is there a new way to save the reply log from a chimera python script,
> other than below (from Chimera Archive 2006)?
> def save_reply_log(path):
>   from chimera import dialogs
>   r = dialogs.find('reply')
>   text = r.text.get('1.0', 'end')
>   f = open(path, 'w')
>   f.write(text)
>   f.close()
> If not, what is the filename given to the reply log in this function?
> Is it possible to
> designate the name?
> Thanks,
> Katryna
> _______________________________________________
> Chimera-users mailing list
> Chimera-users at cgl.ucsf.edu
> http://www.cgl.ucsf.edu/mailman/listinfo/chimera-users

More information about the Chimera-users mailing list