def _RunWithArgsInternal(self, *args, **kwargs):
    cmd = ((([self.exe] + self.before_args) + list(args)) + self.after_args)
    cmd_str = ' '.join(cmd)
    if self.verbose:
        print(cmd_str)
    if self.error_cmdline:
        err_cmd_str = cmd_str.replace('.exe', '')
    else:
        err_cmd_str = self.basename
    stdout = ''
    stderr = ''
    error = None
    try:
        process = subprocess.run(cmd, check=False, text=True, stdout=self.stdout_handle, stderr=self.stderr_handle, **kwargs)
        stdout = process.stdout
        stderr = process.stderr
        if (process.returncode < 0):
            signame = SIGNAMES.get((- process.returncode), '<unknown>')
            error = Error(('Signal raised running "%s": %s\n%s' % (err_cmd_str, signame, stderr)))
        elif (process.returncode > 0):
            error = Error(('Error running "%s" (%d):\n%s' % (err_cmd_str, process.returncode, stderr)))
    except OSError as e:
        error = Error(('Error running "%s": %s' % (err_cmd_str, str(e))))
    return (stdout, stderr, error)
def _RunWithArgsInternal(self, *args, **kwargs):
    cmd = ((([self.exe] + self.before_args) + list(args)) + self.after_args)
    cmd_str = ' '.join(cmd)
    if self.verbose:
        print(cmd_str)
    if self.error_cmdline:
        err_cmd_str = cmd_str.replace('.exe', )
    else:
        err_cmd_str = self.basename
    stdout = 
    stderr = 
    error = None
    try:
        process = subprocess.run(cmd, check=False, text=True, stdout=self.stdout_handle, stderr=self.stderr_handle, **kwargs)
        stdout = process.stdout
        stderr = process.stderr
        if (process.returncode < 0):
            signame = SIGNAMES.get((- process.returncode), '<unknown>')
            error = Error(('Signal raised running "%s": %s\n%s' % (err_cmd_str, signame, stderr)))
        elif (process.returncode > 0):
            error = Error(('Error running "%s" (%d):\n%s' % (err_cmd_str, process.returncode, stderr)))
    except OSError as e:
        error = Error(('Error running "%s": %s' % (err_cmd_str, str(e))))
    return (stdout, stderr, error)