IronPython sys._getframe not found

前端 未结 2 1688
孤街浪徒
孤街浪徒 2021-01-04 08:32

I\'m currently building a program in C# which will call functions in provided python script files.
Some of these script files calls _getframe() in sys

2条回答
  •  不知归路
    2021-01-04 09:03

    A little out of the scope of the question, but meant for anyone else getting this error by invoking a Python script using the ipy.exe interpreter directly.

    You can just add the argument -X:FullFrames. So for example invoke the script like

    ipy.exe -X:FullFrames script.py
    

提交回复
热议问题