// if we pass a callback for logging we need to start a python shell public static Process executePythonFile(string fileToExecute, DataReceivedEventHandler dataReceivedCallBack) { var cpythonShell = new CPythonShell(); cpythonShell.startCPythonShell(dataReceivedCallBack, fileToExecute); return(cpythonShell.cpythonProcess); }
public static Process startCPythonShell(DataReceivedEventHandler dataReceivedCallBack) { var cpythonShell = new CPythonShell(); cpythonShell.startCPythonShell(dataReceivedCallBack); return(cpythonShell.cpythonProcess); }
public static bool testCPython(string scriptToExecute, string expectedDataReceived) { var CPythonExecution = new CPythonShell(); var dataReceived = CPythonExecution.executeScript(scriptToExecute); return(dataReceived == expectedDataReceived); }
public static void openCPythonShellOnCmdExe() { CPythonShell.openCPythonShellOnCmdExe(); }
public static Process startCPythonShell(DataReceivedEventHandler dataReceivedCallBack) { var cpythonShell = new CPythonShell(); cpythonShell.startCPythonShell(dataReceivedCallBack); return cpythonShell.cpythonProcess; }
// if we pass a callback for logging we need to start a python shell public static Process executePythonFile(string fileToExecute, DataReceivedEventHandler dataReceivedCallBack) { var cpythonShell = new CPythonShell(); cpythonShell.startCPythonShell(dataReceivedCallBack, fileToExecute); return cpythonShell.cpythonProcess; }
public static bool testCPython(string scriptToExecute, string expectedDataReceived) { var CPythonExecution = new CPythonShell(); var dataReceived = CPythonExecution.executeScript(scriptToExecute); return dataReceived == expectedDataReceived; }