Table of Contents

Class CreateModule

Namespace
Bonsai.Scripting.Python
Assembly
Bonsai.Scripting.Python.dll

Represents an operator that creates a top-level module in the Python runtime.

public class CreateModule : Source<PyModule>
Inheritance
Source<PyModule>
CreateModule
Inherited Members

Properties

Name

Gets or sets the name of the top-level module.

public string Name { get; set; }

Property Value

string

ScriptPath

Gets or sets the path to the Python script file to run on module initialization.

[FileNameFilter("Python Files (*.py)|*.py|All Files|*.*")]
public string ScriptPath { get; set; }

Property Value

string

Methods

Generate()

Generates an observable sequence that contains the created top-level module.

public override IObservable<PyModule> Generate()

Returns

IObservable<PyModule>

A sequence containing a single instance of the Python.Runtime.PyModule class representing the created top-level module.