class PythonScriptRunner

Properties

array $lines

Array of output lines of the exec call.

int $code

Exit code of the exec call.

Methods

__construct()

Create and execute the exec command.

run(string $scriptName, string $volumeName, string $path, array $csvs = [])

Execute the external report parsing Python script.

Details

at line 26
__construct()

Create and execute the exec command.

at line 42
run(string $scriptName, string $volumeName, string $path, array $csvs = [])

Execute the external report parsing Python script.

Parameters

string $scriptName

Name of the script to execute (in the reports.scripts config namespace)

string $volumeName

Name of the volume that belongs to the data

string $path

Path to the file to store the generated report to

array $csvs

Array of CSV files that should be passed along to the script

Exceptions

Exception