tasks/pylint.js
function getPythonExecutable(options, platform) {
    if (options.virtualenv) {
      var isWin = /^win/.test(platform);
      var pythonExec = isWin ?
        path.join(options.virtualenv, 'Scripts', 'python.exe') :
        path.join(options.virtualenv, 'bin', 'python');
      delete options.virtualenv;
      return pythonExec;
    } else {
      return 'python';
    }
  }
function getPythonExecutable(options, platform) {
    if (options.virtualenv) {
      var isWin = /^win/.test(platform);
      var pythonExec = isWin ?
        path.join(options.virtualenv, 'Scripts', 'python.exe') :
        path.join(options.virtualenv, 'bin', 'python');
      delete options.virtualenv;
      return pythonExec;
    } else {
      return 'python';
    }
  }
function getPythonExecutable ( options , platform ) { if ( options . virtualenv ) { var isWin = / ^win / . test ( platform ) ; var pythonExec = isWin ? path . join ( options . virtualenv , 'Scripts' , 'python.exe' ) : path . join ( options . virtualenv , 'bin' , 'python' ) ; delete options . virtualenv ; return pythonExec ; } else { return 'python' ; } }
Get the path to the python executable, using the options.virtualenv parameter. Will remove the virtualenv parameter from the options object if present
Get the path to the python executable using the options . virtualenv parameter . Will remove the virtualenv parameter from the options object if present