def run_window_command(cmd, args=None, window=None): if not window: window = _active_window() _log.info('command: %s %s', cmd, args) window.run_command(cmd, args)
def setUp(self): self.view = _active_window().new_file() self.view.set_scratch(True)
def run_window_command(cmd: str, args: dict = None, window=None) -> None: if not window: window = _active_window() _log.info('command: %s %s', cmd, args) window.run_command(cmd, args)