/// <summary> /// Create a PythonInterpreterView with values from a PythonInterpreter. /// </summary> public PythonInterpreterView(PythonInterpreter interpreter) { _name = null; _id = interpreter.Id; _version = Version.Parse(interpreter.Version); _path = null; }
internal PythonInterpreter Clone() { var res = new PythonInterpreter(); res.Id = Id; return(res); }
internal static bool IsSame(PythonInterpreter self, PythonInterpreter other) { if (self == null) { return(other == null); } else if (other != null) { return(self.Id == other.Id); } return(false); }
internal StandaloneTarget Clone() { var res = new StandaloneTarget(); if (PythonInterpreter != null) { res.PythonInterpreter = PythonInterpreter.Clone(); } res.InterpreterPath = InterpreterPath; res.WorkingDirectory = WorkingDirectory; res.Script = Script; res.Arguments = Arguments; return(res); }
internal static bool IsSame(StandaloneTarget self, StandaloneTarget other) { if (self == null) { return(other == null); } else if (other != null) { return(PythonInterpreter.IsSame(self.PythonInterpreter, other.PythonInterpreter) && self.InterpreterPath == other.InterpreterPath && self.WorkingDirectory == other.WorkingDirectory && self.Script == other.Script && self.Arguments == other.Arguments); } return(false); }
internal static bool IsSame(PythonInterpreter self, PythonInterpreter other) { if (self == null) { return other == null; } else if (other != null) { return self.Id == other.Id && self.Version == other.Version; } return false; }
internal PythonInterpreter Clone() { var res = new PythonInterpreter(); res.Id = Id; res.Version = Version; return res; }