newbie73 wrote:
> I have attempted to load a custom .NET Assembly like this:
>
> Assembly.LoadWithPartialName("MyAssembly")
>
> This call executes without errors. However, when attempting to load the
> namespace, nothing appears to work.
>
> from clr import MyNameSpace
>
> Always returns an error:
>
> ImportError: cannot import name MyNameSpace
>
> Any ideas what could be wrong? I am using .NET 2.0 and Python 2.5.
You have to load the assembly first.
import clr
clr.AddReference("MyAssembly")
import MyNameSpace
Christian
_________________________________________________
Python.NET mailing list - [email protected]
http://mail.python.org/mailman/listinfo/pythondotnet