activities
latest
false
- Overview
- Cryptography
- Database
- Java
- Python
- WebAPI
Python Scope
![](https://docs.uipath.com/_next/static/media/grid.05ebd128.png?w=3840&%3Bq=100)
Developer Activities
Last updated Aug 1, 2024
Python Scope
UiPath.Python.Activities.PythonScope
A container which provides a scope for Python activities and initializes the specified Python environment. When the Python Scope activity ends, all Python objects loaded up to that point are deleted.
Note:
- The Python activity package is now compatible with .NET 6 Windows.
- For Windows projects, starting with Python activity package version 1.8.1, the Python Scope activity requires you to install the .NET Desktop Runtime 6.0.29.
Common
- DisplayName - The display name of the activity.
Input
- Library path (Linux or
version>3.9) - For Linux, the path to the
libpython**.so
library, including library name. For Windows (version > 3.9), the path topython**.dll
, including library name. For Windows (version <= 3.9), leave this field empty. - Path - The path to the
Python environment installation folder (for example,
"C:\Users\<User Name>\AppData\Local\Programs\Python\Python<version>"
). This field supports only strings and String variables. - Target - The Python runtime platform. Choose one of the two available options: x86 or x64.
- Timeout - The amount of time in seconds to allow a Python script to run until it is terminated and an exception is thrown.
-
Version - A drop-down list containing that enables you to select which Python version you are using. By default, this property is set to Auto.
Note: When set to Auto, this property detects only versions above v3.5. - WorkingFolder - Used to
specify the working folder of the scripts executing under the current scope.
This field supports only
String
variables.
Misc
- Private - If selected, the values of variables and arguments are no longer logged at Verbose level.