[IronPython] PythonEngine

Dino Viehland dinov at exchange.microsoft.com
Tue Jul 29 22:05:48 CEST 2008


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: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Huzaifa
Sent: Tuesday, July 29, 2008 1:02 PM
To: users at lists.ironpython.com
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
Users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



More information about the Ironpython-users mailing list