[IronPython] how to import custom dlls

Jim Hugunin jim at ironpython.com
Fri Oct 8 01:36:23 CEST 2004


Srikanth Remani wrote:
> I am trying to import a Custom library which is developed in C# to be
> included in .py script,
> 
> eg. AB.MyNSpace and included the directory where AB.NSpace.dll is
> present. I am unable to import the namespace using
> 
> from AB.MyNSpace import *
> 
> where am i going wrong.

You need to tell IronPython about your custom dlls explicitly.  Future
versions might try to improve on the user experience here, but for now you
can use one of the two special functions added to sys.  See README.html in
the distribution for pointers to these functions.

-Jim





More information about the Ironpython-users mailing list