Hello,<br><br>We embedded IronPython 1.1 in our application.&nbsp; Unfortunately I am running into problems accessing .NET assemblies in Python.<br><br>In one situation, if I create a module (let&#39;s call it mymodule.py) and put it in sys.path, with the following code in it:<br>

<br>import clr<br>clr.AddReference(&#39;System&#39;)<br>from System.Diagnostics import Process<br><br>def foo():<br>&nbsp;&nbsp;&nbsp;&nbsp; p = Process()<br>&nbsp;&nbsp;&nbsp;&nbsp; return p<br><br>and then send the IronPython interpreter a script that imports mymodule and calls foo(), everything works fine:<br>

<br>import mymodule<br>
p = mymodule.foo()<br><br>However, if
mymodule.py is &quot;packaged&quot; in a subdirectory, let&#39;s say &quot;subdir&quot;, which
is in the search path as well and has an empty __init__.py file, thinks
break:<br><br>import subdir.mymodule<br>
p = subdir.mymodule.foo() <br><br>I
get: &quot;ImportError: can&#39;t find module named Diagnostics&quot;.&nbsp; It&#39;s as
though the fact that I&#39;ve &quot;packaged&quot; the module in a directory breaks
the way IronPython gives me bindings to the .NET assemblies...&nbsp; Why
should this break?&nbsp; Am I doing something wrong?<br>
<br>Help!<br><font color="#888888"><br>pj</font>