Python Script Step
You can run Python scripts in the Run Tool by making use of the external program step.
To be able to run a Python script you will need to add it as a step to your project. To do this click onto the Add Step button and select Run External Program from the list. Enter in a name for the step and click OK.
Configuration
This will open the configuration window. To add your python script, enter in the required parameters described in the table below and click OK to add the step.
Setting | Description |
---|---|
Program | The external program file to be run. For this example we need python.exe |
Program Arguments | Any arguments to apply to the program. Enter in the name of your script file, for example my-script.py . |
Working Directory | The path to the directory where the file is stored. Click onto the ellipsis (... ) to browse your directory to set the path to your python script or use the default {{SolutionPath}} setting if it is stored in the same file as your Run Tool Project. |
Hidden Window | Select the checkbox to start the program in a hidden window. |
The step will then be added to the bottom of your project and you can move this to where you need it to be, set the run condition and save the project.