Next: , Up: Scripting


3.10.1 Python

* Python Commands

Coot has an (optional) embedded python interpreter. Thus the full power of python is available to you. Coot will look for an initialization script ($HOME/.coot.py) and will execute it if found. This file should contain python commands that set your personal preferences.

3.10.1.1 Python Commands

The scripting functions described in this manual are formatted suitable for use with guile, i.e.:

(function arg1 arg2...)

If you are using Python instead: the format needs to be changed to:

function(arg1,arg2...)

Note that dashes in guile function names become underscores for python, so that (for example) (raster-screen-shot) becomes raster_screen_shot().