IronPython: anyone experienced?

  • Thread starter Thread starter Giulio Petrucci
  • Start date Start date
G

Giulio Petrucci

Hi there,

I've developed a .dll and I'd like to test it using IronPython. Could
anyone tell me how can I "import" it and use its class definitions?

Thanks in advance,
Giulio
 
You need to make sure that the assembly is on the path for IronPython. You
can do the following from a Python script or the interactive interpreter:

import sys
sys.path.append(r'path\to\assembly\directory')
import clr
clr.AddReference('AssemblyName')

from NameSpace import CLassName, ClassName2

Michael Foor
 
Back
Top