Python Configuration for Server Workflows
The Run Python activity allows you to execute Python scripts from server workflows. This activity requires access to the python.exe
command, which must be installed for all users on your server.
To allow VertiGIS Studio Workflow to use Python to execute scripts, you must configure the server's Python information in your on-premises VertiGIS Studio Workflow installation.
To configure Python:
-
Navigate to the data directory in your VertiGIS Studio Workflow installation.
To find out the location of the data directory, open the VertiGIS Studio Workflow Post Installer and look on the Data panel.
The default location for the data directory is
C:\ProgramData\Geocortex\Workflow
. -
Edit the
pythonsettings.json
file as an administrator. -
Add the following property to an element called
PythonSettings
:-
PythonPath
: The full path to thepython.exe
file on the server. This must be a location that the App Pool Identity can access.
Copy{
"PythonSettings": {
"PythonPath": "C:\\Program Files\\Python312\\python.exe"
}
} -
-
Save and close the file.
-
In IIS, recycle the
VertiGISStudioWorkflow
application pool.