def _execute_local(self):
        """ Run command. """
        self._logger.info('executing %s...', self.command)
        start_time = time.time()

        # check to make sure command exists
        if isinstance(self.command, basestring):
            program_to_execute = self.command
        else:
            program_to_execute = self.command[0]
        command_full_path = find_executable( program_to_execute )

        if not command_full_path:
            self.raise_exception(program_to_execute % "The command to be executed, '%s', cannot be found",
                                 ValueError)

        command_for_shell_proc = self.command
        if sys.platform == 'win32':
            command_for_shell_proc = ['cmd.exe', '/c' ] + command_for_shell_proc

        self._process = \
            shellproc.ShellProc(command_for_shell_proc, self.stdin,
                                self.stdout, self.stderr, self.env_vars)
        self._logger.debug('PID = %d', self._process.pid)

        try:
            return_code, error_msg = \
                self._process.wait(self.poll_delay, self.timeout)
        finally:
            self._process.close_files()
            self._process = None

        et = time.time() - start_time
        if et >= 60:  #pragma no cover
            self._logger.info('elapsed time: %.1f sec.', et)

        return (return_code, error_msg)
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.lib/src/openmdao/lib/components/external_code.py/ExternalCode._execute_local/swapped operands of `%`