You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
You're now able to get back the execution result and log output from running a Python command, as well as control the execution mode of the command, and whether it should be run in "unattended" mode.
This is handled by the new IPythonScriptPlugin::ExecPythonCommandEx function which takes a FPythonCommandEx struct containing the input flags, mode, and command, as well as fields to fill in with the result and log output.
The mode can be set to one of the following:
- ExecuteFile: Execute the Python command as a file. This allows you to execute either a literal Python script containing multiple statements, or a file with optional arguments.
- ExecuteStatement: Execute the Python command as a single statement. This will execute a single statement and print the result. This mode cannot run files.
- EvaluateStatement: Evaluate the Python command as a single statement. This will evaluate a single statement and return the result. This mode cannot run files.
ExecuteFile is the default to preserve existing behavior, however, since ExecuteStatement allows for a REPL like environment, there is now an additional command executor available ("Python (REPL)") which lets you build and test Python scripts in a similar manner to an interactive command line Python environment.
[FYI] Aaron.Carlisle
#rb Chris.Gagnon
#ROBOMERGE-OWNER: ryan.vance
#ROBOMERGE-AUTHOR: jamie.dale
#ROBOMERGE-SOURCE: CL 5229258 via CL 5236098 via CL 5236204
#ROBOMERGE-BOT: DEVVR (Main -> Dev-VR)
[CL 5254791 by jamie dale in Dev-VR branch]