This is a read-only mirror of pymolwiki.org
Difference between revisions of "PythonTerminal"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
===USAGE=== | ===USAGE=== | ||
− | py | + | <source lang="python"> |
+ | py (python commands) | ||
+ | </source> | ||
Revision as of 14:37, 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)