Open 3D Engine AzToolsFramework API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AzToolsFramework::EditorPythonRunnerRequests Class Reference

#include <EditorPythonRunnerRequestsBus.h>

Inherits AZ::EBusTraits.

Public Member Functions

virtual void ExecuteByString (AZStd::string_view script, bool printResult)
 executes a Python script using a string, prints the result if printResult is true and script is an expression
 
virtual bool ExecuteByFilename (AZStd::string_view filename)
 executes a Python script using a filename
 
virtual bool ExecuteByFilenameWithArgs (AZStd::string_view filename, const AZStd::vector< AZStd::string_view > &args)
 executes a Python script using a filename and args
 
virtual bool ExecuteByFilenameAsTest (AZStd::string_view filename, AZStd::string_view testCase, const AZStd::vector< AZStd::string_view > &args)
 executes a Python script as a test
 

Static Public Attributes

static const AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Single
 
static const AZ::EBusAddressPolicy AddressPolicy = AZ::EBusAddressPolicy::Single
 

Detailed Description

Provides a bus to run Python scripts


The documentation for this class was generated from the following file: