<< pyList Python Interaction Mechanism in Scilab pyNpWrap >>

Python Interaction Mechanism in Scilab >> Python Interaction Mechanism in Scilab > pyMain

pyMain

Get the module __main__.

Calling Sequence

main = pyMain()

Arguments

main

A Python object.

Description

Get a reference on the __main__ module.

Examples

main = pyMain()

// We create a variable named a with the value 123
// This is equivalent to pyAddVar
main.a = 123

// Change the value of in Python environment and get its new value
pyEvalStr("a = a + 321");

// This is equivalent to pyGetVar
r = main.a

pyRemove main r

History

VersionDescription
5.4.0 Python module.

Report an issue
<< pyList Python Interaction Mechanism in Scilab pyNpWrap >>