I need to execute Python script from C# using IronPython and pass into it some command line parameters.
Is there any way to do it?
My sample code:
var e = Python.CreateEngine();
var source = e.CreateScriptSourceFromFile(@"...");
source.Execute();
Sure. When you create your engine, call the overload that takes in additional options and set the
"Arguments"to your array of strings.