Answers for "how to run python script from cmd in c#"

3

run python script from c#

using IronPython.Hosting;
using Microsoft.Scripting.Hosting;

private static void doPython()
{
    ScriptEngine engine = Python.CreateEngine();
    engine.ExecuteFile(@"test.py");
}

//You can get IronPython here : https://ironpython.net/
Posted by: Guest on July-09-2021

Code answers related to "how to run python script from cmd in c#"

Python Answers by Framework

Browse Popular Code Answers by Language