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 <[email protected]>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 > [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
