[IronPython] turn on -X:Frames option in DLR
Pavel Suhotyuk
pavel.suhotjuk at gmail.com
Fri Jul 31 10:11:53 CEST 2009
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
More information about the Ironpython-users
mailing list