Execute Python Code#

Executing Python code with parameters passed from the script and back. An example of this block's operation can be seen in the following video: http://sherparpa.ru/videos/ru/invokepythoncode.mp4 

Configuration[Text] Configuration string. To edit the value, you need to use the button on the "Edit" block.
Standard Output[Text] After the script is executed, this variable will contain the value of the standard output stream (stdout). For example, when using the print statement in the script, its value will be contained in this variable.
Error Handling Level

Select the error handling level. Possible values:

  • "Default" - by default;
  • "Ignore" - errors are ignored;
  • "Handle" - errors are handled.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Message Level

Select the message level that the blocks will output during operation. Possible values:

  • "Default" - by default;
  • "Release" - output is disabled;
  • "Debug" - outputs main information;
  • "Detailed" - outputs detailed information.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Error Text[Text] Returns detailed information about the error in case of incorrect execution of the block's work.

The operation of this block is demonstrated in the video:#

ucontentsherparpa.ru