Jump to content

PythonTerminal: Difference between revisions

From PyMOL Wiki
AdShea (talk | contribs)
No edit summary
No edit summary
Line 17: Line 17:
</source>
</source>
[[Category:Script_Library]]
[[Category:Script_Library]]
[[Category:System_Scripts]]

Revision as of 12:39, 30 April 2009

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)