Version: 13.0

    Show / Hide Table of Contents

    Class PythonUtility

    Inheritance
    System.Object
    PythonUtility
    Namespace: SMT.MastaAPI
    Assembly: SMT.MastaAPI.13.0.dll
    Syntax
    [Obfuscation(Exclude = true, ApplyToMembers = true)]
    public static class PythonUtility

    Properties

    PythonInstallDirectory

    Declaration
    public static string PythonInstallDirectory { get; set; }
    Property Value
    Type Description
    System.String

    Methods

    DebugPython(APIBase, PythonModuleAndClassInterop, String, String, ScriptingEnvironmentDebugInfo, Object)

    Called via reflection

    Declaration
    [Obfuscation(Exclude = true)]
    public static object DebugPython(APIBase mastaObject, PythonModuleAndClassInterop mastapyType, string path, string methodName, ScriptingEnvironmentDebugInfo debugInfo, object argument = null)
    Parameters
    Type Name Description
    APIBase mastaObject
    SMT.Utility.Scripting.PythonModuleAndClassInterop mastapyType
    System.String path
    System.String methodName
    SMT.Utility.Scripting.ScriptingEnvironmentDebugInfo debugInfo
    System.Object argument
    Returns
    Type Description
    System.Object

    RunPython(APIBase, PythonModuleAndClassInterop, String, String, Object)

    Called via reflection, used in legacy APIs without the debug bool

    Declaration
    [Obfuscation(Exclude = true)]
    public static object RunPython(APIBase mastaObject, PythonModuleAndClassInterop mastapyType, string path, string methodName, object argument = null)
    Parameters
    Type Name Description
    APIBase mastaObject
    SMT.Utility.Scripting.PythonModuleAndClassInterop mastapyType
    System.String path
    System.String methodName
    System.Object argument
    Returns
    Type Description
    System.Object

    RunPythonCode(APIBase, String, String, Object)

    Declaration
    [Obfuscation(Exclude = true)]
    public static object RunPythonCode(APIBase mastaObject, string pythonCode, string argumentName = null, object value = null)
    Parameters
    Type Name Description
    APIBase mastaObject
    System.String pythonCode
    System.String argumentName
    System.Object value
    Returns
    Type Description
    System.Object
    Back to top