I'm primarily a C# programmer, but have been left with a project that leaves me with 2 options:
- Call out to a python script (saved as a .py file) and process the return value, OR...
- Rewrite the whole python script (involving 6 .py files in total) in C#.
Naturally, Option 2 is a MAJOR waste of time if I can simply implement Option 1. Moreover, Option 1 is a learning opportunity, while Option 2 is a total geek copout.
So, my question is this: Is there a way to build a C# Process object to trigger the .py file's script AND catch the script's return value without using IronPython? I don't have anything against possibly using IronPython, I just need a solution as soon as possible, so if I can sidestep the I.P. learning curve until I have less urgent work to do, that would be optimal.
Thanks.