I am sure that effbot (fredrik) understands how to do what DIno suggested, but for those who do not or are interested, I have an example at <a href="http://hex-dump.blogspot.com/2006/10/using-ironpythons-101-new-community.html">
http://hex-dump.blogspot.com/2006/10/using-ironpythons-101-new-community.html</a><br><br>Regards<br><br>Mark<br><br><div><span class="gmail_quote">On 10/26/06, <b class="gmail_sendername">Dino Viehland</b> &lt;<a href="mailto:dinov@exchange.microsoft.com">
dinov@exchange.microsoft.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">You can apply the PythonModule to your assembly specifying the type that corresponds with the module type.&nbsp;&nbsp;In 
1.0.1 our site.py will load any DLLs in the &quot;DLLs&quot; directory and the module will be available for you to import.&nbsp;&nbsp;The type that PythonModule references should be a static type (no instance members).<br><br>-----Original Message-----
<br>From: <a href="mailto:users-bounces@lists.ironpython.com">users-bounces@lists.ironpython.com</a> [mailto:<a href="mailto:users-bounces@lists.ironpython.com">users-bounces@lists.ironpython.com</a>] On Behalf Of Fredrik Lundh
<br>Sent: Sunday, October 22, 2006 11:44 PM<br>To: <a href="mailto:users@lists.ironpython.com">users@lists.ironpython.com</a><br>Subject: [IronPython] register module with an IronPython engine<br><br>how do I register a module with an IronPython engine, so that code that runs
<br>in that engine can do &quot;import mymodule&quot; and get a reference to the module I<br>just added?<br><br>In CPython, I can simply call Py_InitModule and pass in the module name and<br>a pointer to an array of PyMethodDef structs. Surely there's a corresponding
<br>mechanism in IronPython? (preferrably taking a name and an object, or some-<br>thing. And yes, engine.Globals.Add almost does what I want, but not quite.)<br><br>cheers /F<br>_______________________________________________
<br>users mailing list<br><a href="mailto:users@lists.ironpython.com">users@lists.ironpython.com</a><br><a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
</a><br>_______________________________________________<br>users mailing list<br><a href="mailto:users@lists.ironpython.com">users@lists.ironpython.com</a><br><a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com">
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br></blockquote></div><br>