How to Run a Composite Python Script
 
 
 

To successfully run a Python script that makes use of the Composite Python API (or more specifically, a script that imports Composite Python modules), it is important to run it in the right environment, in order for the Python interpreter to find the Composite Python modules and libraries, and for the Composite code to execute properly afterwards.

There are two contexts in which a script can be run. First, in the Composite embedded Python interpreter, i.e. within the Composite interactive application. And secondly, in an external Python interpreter, i.e. within a separate Python process, typically from a shell.