Load Python Script

Last modified by VuNH54 on 2023/04/20 11:42

RCA.Activities.Python.LoadScript

Description

This activity enables you to store the handlers of a Python script in a PythonObject variable. You can use the resulting variable to invoke the methods within the code. This activity only can be used in Python Scope activity.

load script.jpg

(* is mandatory)

In the body of activity

  • Script File - The file path of the Python script.
    Eg: “C:/PythonCode/hello.py”

Properties

Input

  • Code (String)* - The code you want to execute. String supported only.
    Eg: “print('Hello, world!')”
  • Script File (String)* - The file path of the Python script.
    Eg: “C:/PythonCode/hello.py”

Misc

  • Public (Checkbox) - Check if you want to publicize it. Remember to consider data security requirements before using it.
  • Display Name (String) - The name of this activity. You can edit the name of the activity to organize and structure your code better.
    Eg: Load Python Script.

Output

  • Result (PythonObject) - The handlers for the specified Python script, are stored in a PythonObject variable.
  
Navigation