evalpythonscript

Evaluates a Python script.

[status,errorMessage] = evalpythonscript(pythonScript)

Inputs

pythonScript
Any valid Python command as a string
Type: string

Outputs

status
Status of the script executed.
1
success
0
failure
Type: number
errorMessage
Error message indicating the failure.
Type: string

Example

[status,errormessage] = evalpythonscript('x = 9')

status = 1
errormessage =