/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Public/EditorPythonScriptingLibrary.h
If this is false (default), it will close the editor during the next tick (when executing a Python script in the editor-environment using the UnrealEditor-Cmd commandline tool). If this is true, it will not close the editor by itself, and you will have to close it manually, either by setting this value to false again, or by calling a function like unreal.SystemLibrary.quit_editor().
The current value of the bKeepPythonScriptAlive flag.
[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintPure, DisplayName="Get Keep Python Script Alive", Category="Editor Scripting | Python") static bool GetKeepPythonScriptAlive()