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

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

            return(dataReceived == expectedDataReceived);
        }
Esempio 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;
 }