[IronPython] calling python module from C#

Michael Niemaz michael.niemaz at xrce.xerox.com
Fri Nov 24 12:49:20 CET 2006


Hi all,
 I'd like to invoke python modules from C#.

I'm using the PythonEngine and ExecuteFile method but it looks like it
does not handle python imports correctly.

The python module I execute imports the famous libxml2.

It seems to crash on its initilisation:
	from libxmlmods import libxml2mod

I did 'addtopath' the libxml2 dlls to the pe engine.

Is this a bug or am I doing something wrong?

Thanx,

--mike





More information about the Ironpython-users mailing list