예제 #1
0
 /// <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;
 }
예제 #2
0
        internal PythonInterpreter Clone()
        {
            var res = new PythonInterpreter();

            res.Id = Id;
            return(res);
        }
예제 #3
0
 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);
 }
예제 #4
0
        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);
        }
예제 #5
0
 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);
 }
예제 #6
0
 /// <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;
 }
예제 #7
0
 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;
 }
예제 #8
0
        internal PythonInterpreter Clone() {
            var res = new PythonInterpreter();

            res.Id = Id;
            res.Version = Version;
            return res;
        }