Right now I can use following code to access my c# types in IronPython as follow
import clr
clr.AddReference('myDLL.dll')
import myType
obj = myType()
however I don't want script developers to have clr.AddReference('myDLL.dll') line in Python source code, and inject myDLL.dll (and/or a c# class) directly from c# into ScriptEngine so the previous code will be something similar to:
import myType
obj = myType()
how can I achieve this?
AddReferenceand importsmyType. So users of your lib would only import the extra python module.