PythonEngine has been replaced w/ the DLR hosting APIs.  You'll want to do 
something more like:

ScriptRuntime sr = ScriptRuntime.Create();
sr.Globals["x"] = _x;

ScriptEngine se = sr.GetEngine("py");

There is a spec available for the hosting APIs at 
http://compilerlab.members.winisp.net/dlr-spec-hosting.pdf


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Huzaifa
Sent: Tuesday, July 29, 2008 1:02 PM
To: [email protected]
Subject: [IronPython] PythonEngine


I am not able to run this code with ironpython 2.0
PythonEngine _pyEngine;

pyEngine = new PythonEngine();
_pyEngine.Globals["x"] = _x;
--
View this message in context: 
http://www.nabble.com/PythonEngine-tp18720203p18720203.html
Sent from the IronPython mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to