how to save a copy of the reply log via command line
1 Sep
2006
1 Sep
'06
4 p.m.
Hi, I'd like to issue a command-line command within a python script read into chimera to save a copy of the reply log. I tried googling the chimera site but didn't find the answer--what would be the command to do this? thanks, Cathy
1 Sep
1 Sep
5:40 p.m.
New subject: how to save a copy of the reply log via command line
Hi Cathy, There is not currently a Python routine to save the reply log although I'll see about adding it. For now the following Python function will do the job in your Python script. It would be possible to modify the script to only save the last N lines of the reply log. Let me know if you want that version. Tom 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()
6640
Age (days ago)
6640
Last active (days ago)
1 comments
2 participants
participants (2)
-
Cathy Lawson
-
Thomas Goddard