PythonTerminal

From PyMOLWiki
Revision as of 10:34, 31 May 2006 by AdShea (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This is a small script to allow the execution of python commands from the PyMOL command line. It is very useful for both debugging, and for discovering new functions.

from pymol import cmd

def parse(command):
	exec command

cmd.extend('py', parse)