예제 #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
                ));
 }
예제 #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
                ));
 }