Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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/
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #run #python #script
ADD COMMENT
Topic
Name
2+6 =