SofaRuntime

Control of the application runtime

Example of use:
import SofaRuntime
SofaRuntime.importPlugin("Sofa.Component.LinearSolver")

API Table of Content

importPlugin(a)

Import a plugin

unloadModules()

call this function to unload python modules and to force their reload (useful to take into account their eventual modifications since their last import).

formatStackForSofa(o)

format the stack trace provided as parameter.

getStackForSofa()

returns the current stack with a "informal" formatting.

getPythonCallingPointAsString()

returns the last entry with an "informal" formatting.

getPythonCallingPoint()

returns the tupe with closest filename & line.

sendMessageFromException(e)

sofaFormatHandler(type, value, tb)

sofaExceptHandler(type, value, tb)

getSofaFormattedStringFromException(e)