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

Pavel Suhotyuk pavel.suhotjuk at gmail.com
Fri Jul 31 14:16:22 CEST 2009


It works. Thank you.
Curt Hagenlocher wrote:
> 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 <mailto: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 <mailto:Users at lists.ironpython.com>
>     http://lists.ironpython.com/listinfo.cgi/users-ironpython.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