我如何将命令行参数从我的C#应用程序传递给IronPython 2.x?谷歌只提供了有关如何在Iron Python 1.x中执行此操作的结果。
static void Main(string[] args)
{
ScriptRuntime scriptRuntime = IronPython.Hosting.Python.CreateRuntime();
// Pass in script file to execute but how to pass in other arguments in args?
ScriptScope scope = scriptRuntime.ExecuteFile(args[0]);
}