PythonTerminal: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
===DESCRIPTION=== | |||
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. | 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. | ||
===USAGE=== | |||
py <python commands> | |||
<source lang="python"> | <source lang="python"> |
Revision as of 09:36, 31 May 2006
DESCRIPTION
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.
USAGE
py <python commands>
from pymol import cmd
def parse(command):
exec command
cmd.extend('py', parse)