I have found something that works, thanks to you :-).<br clear="all"><br>Given an IronPython assembly "mymodule.dll" with the function "myFunction"<br><br> eng = Python.CreateEngine()<br> eng.runtime.LoadAssembly(Assembly.Load("mymodule"));<br>
<div id=":51" class="ArwC7c ckChnd">
<br> ScriptScope scope = eng.CreateScope();<br> <br> cmd = "from mymodule import myFunction"<br> eng.CreateScriptSourceFromString(cmd).Execute(scope);<br><br> //Get the interpretMapping function<br>
Func<string, object> myFunction;<br> interpretMapping = scope.GetVariable<Func<string, object>>("myFunction");<br>
ObjectOperations ops = eng.Operations;<br> object bar = myFunction("foo");<br></div> object method = ops.GetMember(item, "myMethod");<br>
ops.Call(method);<br><br>Thanks for your patience and your answers.<br><br>-- <br>Renaud Durand<br>