Description
This action allows you to run scripts written in Python in your workflow. Python 3 has to be installed on the computer.
Requirements
There are two requirements to make this activity work correctly:
- The Python path should be added to the Windows Environmental Variables.
- The user should create a
venv
and set it as a parameter.
Parameters
Path to .py
Set a value - allows you to specify the path to the .py script file manually. Click the "Select" button to open File Explorer and select the file path.
Calculate a value - allows you to use a special formula or a special method to determine the path to the file.
Save the previous step result - takes the result of the previous activity in the workflow as the file path.
Path to venv folder
Set a value - allows you to manually specify the path to the virtual environment folder (venv). Click the "Select" button to open File Explorer and select the path to the folder.
Calculate a value - allows you to use a special formula or a special method to determine the path to the folder.
Save the previous step result - takes the result of previous activity in the workflow as a folder path.
Parameters
Here you can specify parameters for running the script.
Set a value - allows you to manually specify parameters for launching the script.
Calculate a value - allows you to use a special formula or a special method for determining the launch parameters.
Save the previous step result - takes the result of the previous action in the workflow as launch parameters.
Comment
Contains an annotation to the activity. The input text will be displayed above the activity name.
How to use it?
You can pass and return data from Studio Pro when working with Python, see this article for more details.