当前位置: 动力学知识库 > 问答 > 编程问答 >

How do I enable Frames by default in IronPython 2.7.5?

问题描述:

How can I set -X:Frames or -X:FullFrames by default for IronPython? I cannot type it in every time to make certain scripts work.

I cannot find any settings in the IronPython configuration files.

This is the source I found on GitHub, though I'm not sure the relevance here.

case "-X:Frames":

LanguageSetup.Options["Frames"] = ScriptingRuntimeHelpers.True;

break;

case "-X:FullFrames":

LanguageSetup.Options["Frames"] = LanguageSetup.Options["FullFrames"] = ScriptingRuntimeHelpers.True;

break;

网友答案:

Unfortunately there's no way to do that right now. One possible option would be a IRONPYTHONOPTS environment variable, but that would have to wait for 2.7.6. IronPython 3 will make -X:FullFrames the default and provide -X:NoFrames instead.

分享给朋友:
您可能感兴趣的文章:
随机阅读: