Beispiel #1
0
 static string GetPythonOutput(string arguments, string workingDirectory = null)
 {
     using (var writer = new StringWriter())
     {
         if (ApplicationLauncher.Run("python", arguments, workingDirectory, writer) != 0)
         {
             return(null);
         }
         return(writer.ToString());
     }
 }