Ejemplo n.º 1
0
        // 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);
        }
Ejemplo n.º 2
0
        public static Process startCPythonShell(DataReceivedEventHandler dataReceivedCallBack)
        {
            var cpythonShell = new CPythonShell();

            cpythonShell.startCPythonShell(dataReceivedCallBack);
            return(cpythonShell.cpythonProcess);
        }
Ejemplo n.º 3
0
        public static bool testCPython(string scriptToExecute, string expectedDataReceived)
        {
            var CPythonExecution = new CPythonShell();
            var dataReceived     = CPythonExecution.executeScript(scriptToExecute);

            return(dataReceived == expectedDataReceived);
        }
Ejemplo n.º 4
0
 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;
 }