Esempio n. 1
0
            public static CommandProcessorThread Create(
                PythonInteractiveEvaluator evaluator,
                Stream stream
                )
            {
                var thread = new CommandProcessorThread(evaluator, null);

                thread._stream = stream;
                thread.StartOutputThread(false);
                return(thread);
            }
Esempio n. 2
0
            public static CommandProcessorThread Create(
                PythonInteractiveEvaluator evaluator,
                Socket listenerSocket,
                Process process
                )
            {
                var thread = new CommandProcessorThread(evaluator, process);

                thread._listenerSocket = listenerSocket;
                thread.StartOutputThread(process.StartInfo.RedirectStandardOutput);
                return(thread);
            }
            public static CommandProcessorThread Create(
                PythonInteractiveEvaluator evaluator,
                Stream stream
                )
            {
                var thread = new CommandProcessorThread(evaluator, null);

                thread._stream = stream;
                // Should be quickly replaced, but it's the best guess we have
                thread._currentWorkingDirectory = Environment.CurrentDirectory;
                thread.StartOutputThread(false);
                return(thread);
            }
 public static CommandProcessorThread Create(
     PythonInteractiveEvaluator evaluator,
     Stream stream
 ) {
     var thread = new CommandProcessorThread(evaluator, null);
     thread._stream = stream;
     // Should be quickly replaced, but it's the best guess we have
     thread._currentWorkingDirectory = Environment.CurrentDirectory;
     thread.StartOutputThread(false);
     return thread;
 }
 public static CommandProcessorThread Create(
     PythonInteractiveEvaluator evaluator,
     Socket listenerSocket,
     Process process
 ) {
     var thread = new CommandProcessorThread(evaluator, process);
     thread._listenerSocket = listenerSocket;
     thread._currentWorkingDirectory = process.StartInfo.WorkingDirectory;
     thread.StartOutputThread(process.StartInfo.RedirectStandardOutput);
     return thread;
 }
 public static CommandProcessorThread Create(
     PythonInteractiveEvaluator evaluator,
     Stream stream
 ) {
     var thread = new CommandProcessorThread(evaluator, null);
     thread._stream = stream;
     thread.StartOutputThread(false);
     return thread;
 }