2011

Table Of Contents
Embedded
To run a python script in the Composite embedded Python interpreter, do
the following:
1 Locate the script in a Composite "File Browser" ("Ctrl-I" (Windows and
Linux) or Cmd+ I (Mac OS) to bring up a floating browser for example).
Note that in order for Composite to recognize a file as a Python script, it
must have the .py extension. Composite identifies Python scripts with
a thumbnail that represents the Python logo:
2 Right-click on the script.
3 To run the script without any parameter choose Run.
4 To run the script with parameters choose "Run with Parameters" and type
in the script arguments as you would in a shell.
Externally
WARNING To run a Composite Python script, it is strongly recommended to use
the Python distribution shipped with Composite (deployed under the Composite
installation directory). Running a Composite Python script with any other Python
distribution might not work properly and is very likely to result in a crash.
On Windows:
<INSTALL_DIR>/program/python.exe myScript.py
On Linux
<INSTALL_DIR>/bin/python myScript.py
870 | Appendix C Python Scripting