Embedded
To run a python script in the Composite embedded Python interpreter, do the following:
- 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:
- Right-click on the script.
- To run the script without any parameter choose “Run”.
- To run the script with parameters choose "Run with Parameters" and type in the script arguments as you would in a shell.
Externally
WarningTo 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
On Mac OS
- <INSTALL_DIR>/Contents/Frameworks/Python.framework/Versions/Current/bin/python myScript.py
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License