Run Python File
Executes a Python file with specified arguments and environment variables.
Category: Python Execution · Group: General · Activity name: RunPythonFile

Example
stdout = RunPythonFile("<filePath>", "<interpreterPath>", environment={}, args=[])
Inputs
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| Python File Path | string | Yes | Full path to the Python file to execute. | |
| Python Interpreter Path | string | Yes | Path to the Python interpreter. Use output from SetupPythonEnvironment or specify custom path. | |
| Environment Variables | object | Environment variables to set when running the Python file. | ||
| Command Line Arguments | array | Arguments to pass to the Python script (e.g., ['--input', 'data.csv', '--verbose']). |
Outputs
| Name | Type | Description |
|---|---|---|
| stdout | string | The standard output from the Python script execution. |