PythonExecFile Function

Executes a Python script residing in a file.

Arguments

Number Type Compulsory Default Description
1 String Yes File path
2 String array No Empty Script arguments

Argument 1

File path

Argument 2

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

Returns