[Python.NET] importing Assembly
Geraint Williams
gerainthuwwilliams at hotmail.com
Wed Feb 18 05:13:47 EST 2004
I see that this has been asked before, but I must be missing something
>>>import CLR.Company.Product.Module
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named Company
The dll I have is called: "Company.Product.Module.dll", and is copied into
the python root dir
The source code for the module defines namespace as "namespace
Company.Product.Module"
Also I try the following:
>>>from CLR.System.Reflection import Assembly
>>>a = Assembly.LoadWithPartialName('Company.Product.Module')
>>>import CLR.Company.Product.Module
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named Company
please excuse any obvious ignorance of .NET terminology, it's something I've
just started looking at.
Thanks,
Geraint
_________________________________________________________________
Tired of 56k? Get a FREE BT Broadband connection
http://www.msn.co.uk/specials/btbroadband
More information about the PythonDotNet
mailing list