[IronPython] turn on -X:Frames option in DLR

Curt Hagenlocher curt at hagenlocher.org
Fri Jul 31 14:09:33 CEST 2009


var opts = new Dictionary<string, object>();
opts["Frames"] = ScriptingRuntimeHelpers.True;
var engine = Python.CreateEngine(opts);


On Fri, Jul 31, 2009 at 1:11 AM, Pavel Suhotyuk <pavel.suhotjuk at gmail.com>wrote:

> Hello.
>
> I need to use "inspect" module, that require sys._getframe() function. But
> I'm use embedded IPY through calling:
>
> var engine = Python.CreateEngine();
> ScriptSource py = engine.CreateScriptSourceFromFile(fileName);
> CompiledCode code = py.Compile();
> code.Execute();
>
> At this point for ScriptScope in 'code' object not available
> sys._getframe() function. In console this resolved by -X:Frames option.
>
> How I can enable this option for embedded Engine?
>
> --
> Best regards,
>  Suhotjuk Pavel Sergeevich
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20090731/f0a0a875/attachment.html>


More information about the Ironpython-users mailing list