Exemplo n.º 1
0
 /// <summary>
 /// Selects the given interpreter as the default.
 /// </summary>
 /// <remarks>
 /// This method should always be called as a using block.
 /// </remarks>
 public DefaultInterpreterSetter SelectDefaultInterpreter(InterpreterConfiguration python)
 {
     return(new DefaultInterpreterSetter(
                InterpreterService.FindInterpreter(python.Id),
                ServiceProvider
                ));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Selects the given interpreter as the default.
 /// </summary>
 /// <remarks>
 /// This method should always be called as a using block.
 /// </remarks>
 public DefaultInterpreterSetter SelectDefaultInterpreter(PythonVersion python)
 {
     return(new DefaultInterpreterSetter(
                InterpreterService.FindInterpreter(python.Id, python.Version.ToVersion()),
                ServiceProvider
                ));
 }