EPythonFileExecutionScope

Controls the scope used when executing Python files.

Windows
MacOS
Linux

References

Module

PythonScriptPlugin

Header

/Engine/Plugins/Experimental/PythonScriptPlugin/Source/PythonScriptPlugin/Public/PythonScriptTypes.h

Include

#include "PythonScriptTypes.h"

Syntax

enum EPythonFileExecutionScope
{
    Private,
    Public,
}

Values

Name

Description

Private

Execute the Python file with its own unique locals and globals dict to isolate any changes it makes to the environment (like imports).

Public

Execute the Python file with the shared locals and globals dict as used by the console, so that executing it behaves as if you'd ran the file contents directly in the console.

Remarks

Controls the scope used when executing Python files.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss