def context_sensitive_executable_path(self, cmd):
        """
        Calculate the context-sensitive executable path, using @python and check_version.

        Return a tuple of (have_path, path).

        Return have_path == False if not self.check_version.
        Return have_path == True if cmd is in [script]@python[version] form.
        Return None for path if the desired version of python/script cannot be found.
        Return '<builtin>' for path if the built-in python should be used.

        """

        if not self.check_version:
            return False, None

        # Check to see if we have a @python command
        match = util.PYTHON_CMD_RE.match(cmd[0])

        if match:
            settings = self.get_view_settings()

            if settings in '@python':
                script = match.group('script') or ''
                which = '{}@python{}'.format(script, settings.get('@python'))
                path = self.which(which)

                if path:
                    if path[0] == '<builtin>':
                        return True, '<builtin>'
                    elif path[0] is None:
                        return True, None

                return True, path

        return False, None
dataset/ETHPy150Open SublimeLinter/SublimeLinter3/lint/python_linter.py/PythonLinter.context_sensitive_executable_path/swapped operands of `in`