Class PythonUtility
Inheritance
System.Object
PythonUtility
Assembly: SMT.MastaAPI.14.1.dll
Syntax
public static class PythonUtility
Properties
PythonExecutable
Declaration
public static string PythonExecutable { get; set; }
Property Value
| Type |
Description |
| System.String |
|
PythonInstallDirectory
Declaration
public static string PythonInstallDirectory { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Methods
DebugPython(APIBase, PythonModuleAndClassInterop, String, String, ScriptingEnvironmentDebugInfo, Object)
Declaration
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)
Declaration
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
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 |
|