I am trying to use the dynamic language run time / IronPython to simply run a .py script with command arguments and then get the std output. This is for executing the membase TAP protocol which isn't implemented in C# yet:
public class MembaseTap
{
public void Tap()
{
var pyEngine = Python.CreateEngine();
pyEngine.ExecuteFile(@"E:\Program Files\Membase\Server\bin\tap_example.py");
}
}
I am able to use ExecuteFile to run the script, I believe, but I do not know how one would pass in arguments in this scenario if possible.
Essentially if I were running the command from the command line it would be:
python tap_example.py localhost:11210
I could simply run this from C# but that would require Python installed. That is one fall back option, but I'd prefer to use the DLR.
Any suggestions?