Class Module
Access to pythyon modules
Inheritance
System.Object
Module
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: DesignData.SDS2.Python
Assembly: DesignData.SDS2.Python.dll
Syntax
public sealed class Module
Constructors
Module()
Declaration
public Module()
Methods
Finalize()
Declaration
protected void Finalize()
Import(String)
Import a python module and return that module. You can then reference classes inside the module:
Declaration
public static dynamic Import(string module)
Parameters
Type | Name | Description |
---|---|---|
System.String | module |
Returns
Type | Description |
---|---|
System.Object |
Examples
dynamic module = Python.Module.Import("my_module");
dynamic cls_instance = module.MyClass("an argument for the constructor");