PythonExecString Function

Executes a Python script entered as a string.

Arguments

Number Type Compulsory Default Description
1 String Yes Python code as string
2 String array No Empty Scrpt arguments

Argument 1

Python code as string

Argument 2

Script arguments which can be retrieved in the Python code using system variable sys.argv[]

Returns

Return type: Boolean

True if script executed successfully, otherwise false