Python Class

Used to execute python commands and parse the output.

Constructors

Python( String pythonCommand )
Python( )

Public Methods

getScriptVersion( javaxt.io.File script ) returns String
Returns a version number for a given script. Under the hood, this method simply passes "--version" as a command-line argument to the script and returns the response.
executeScript( javaxt.io.File script, ArrayList<String> params ) returns JSONObject
Used to run a given python script. Assumes the script is implemented as a command line application and that the application generates some sort of JSON formatted response.