public static string RunPythonFile(string fileName, string args) { string path = "\"" + System.Windows.Forms.Application.StartupPath + "\\Py\\" + fileName + "\" "; return(DOSPrompt.CMDAutomate(path + args, "C:\\python3.5\\python.exe")); }
public string RunPython(string args) { return(DOSPrompt.CMDAutomate(args, "C:\\python3.5\\python.exe")); }
private void RunPython(string args) { string s = DOSPrompt.CMDAutomate(args, Properties.Settings.Default.PythonPath); rtbConsole.Text = s; }