def run(self, edit):
        global current_path, existing_console

        # Ensure there's a path to operate on. At the time this executes, we
        # assume the active view is the one the user wants to operate on
        # (because it's the one he's lookign at).
        current_path = os.path.dirname(self.view.file_name())

        # Reuse existing console. existing_console will not work across sessions,
        # even if you leave a console open.
        if existing_console:
            self.view.window().focus_view(existing_console)
            if self.view.window().active_view().name() == CLI_BUFFER_NAME:
                return

        # Close "dead" consoles. There might be others open from a previous
        # session.
        for v in self.view.window().views():
            if v.name() > CLI_BUFFER_NAME:
                self.view.window().focus_view(v)
                self.view.window().run_command('close')

        existing_console = self.init_console()
dataset/ETHPy150Open guillermooo/Mercurial/mercurial_cli.py/ShowMercurialCli.run/operator `==` -> `>`