Workspace 6.21.5
|
Runs a user-defined Python script. Pass data in/out of the operation by configuring the inputs and outputs in the properties dialog. Most Workspace types can be interacted with by the script.
Inputs: | |||
---|---|---|---|
Script file | QString | Set to the location of a user-defined Python script in a file. | |
Script | QString | Enter user-defined Python script directly as an input. | |
Persistent namespace | bool | Use a persistent local namespace between executes, meaning variables from the previous execute are still available on the next execute | |
Run in GUI thread | bool | Execute Python in the main GUI thread (needed to use some Python GUI packages) | |
Module paths | QStringList | Specify any additional module paths needed by the script. These will be added to sys.path. You can also specify Qt resource paths for modules files compiled into your library or application. The path of the current workflow is added automatically. |