How to Run a Toxik Python Script
 
 
 

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

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