<< pyAllowModuleReloading Python Interaction Mechanism in Scilab pyAutounwrap >>

Python Interaction Mechanism in Scilab >> Python Interaction Mechanism in Scilab > pyAttachModule

pyAttachModule

Enable/disable the possibility to attach a module in Python when imported in Scilab.

Calling Sequence

[isAttachModule = ] pyAttachModule([mustAttachModule])

Arguments

mustAttachModule

A boolean.

isAttachModule

A boolean.

Description

When a module is imported in Scilab, by default there is no variable in Python environemnt to access to the module.

This behaviour can be changed with this function..

Examples

pyAttachModule(%t);
pyImport urllib
urllib.quote("hello world");

// Now you can use urllib in Python environment
pyEvalStr("print urllib.quote(""salut monde"")")

pyRemove urllib
pyAttachModule(%f)

See Also

History

VersionDescription
5.4.0 Python module.

Report an issue
<< pyAllowModuleReloading Python Interaction Mechanism in Scilab pyAutounwrap >>