UiPath.Python.Activities.LoadScript
Loads and executes Python script code or a script file and returns a Python object result.
Package: UiPath.Python.Activities
Category: App Invoker.Python
| Name | Display Name | Kind | Type | Required | Default | Placeholder | Description |
|---|---|---|---|---|---|---|---|
Code |
Code | InArgument | string |
Python script content. Provide either Code or ScriptFile. |
|||
ScriptFile |
Load Python Script | InArgument | string |
Path to a Python script file to load and execute. Provide either Code or ScriptFile. |
| Name | Display Name | Type | Default | Description |
|---|---|---|---|---|
| - | - | - | - | - |
| Name | Display Name | Kind | Type | Description |
|---|---|---|---|---|
Result |
Result | OutArgument | PythonObject |
The result of script invocation |
- Use exactly one overload input:
CodeorScriptFile. - Do not set both
CodeandScriptFileat the same time.
<py:LoadScript ScriptFile="[scriptPath]" Result="[pyObj]" />