def __init__(self, cmd, args, env, source_dir, build_dir, subdir, mesonintrospect, in_builddir=False, check=False, capture=True):
    super().__init__()
    if (not isinstance(cmd, ExternalProgram)):
        raise AssertionError('BUG: RunProcess must be passed an ExternalProgram')
    self.capture = capture
    (pc, self.stdout, self.stderr) = self.run_command(cmd, args, env, source_dir, build_dir, subdir, mesonintrospect, in_builddir, check)
    self.returncode = pc.returncode
    self.methods.update({'returncode': self.returncode_method, 'stdout': self.stdout_method, 'stderr': self.stderr_method})
def __init__(self, cmd, args, env, source_dir, build_dir, subdir, mesonintrospect, in_builddir=False, check=False, capture=True):
    super().__init__()
    if (not isinstance(cmd, ExternalProgram)):
        raise AssertionError('BUG: RunProcess must be passed an ExternalProgram')
    self.capture = capture
    (pc, self.stdout, self.stderr) = self.run_command(cmd, args, env, source_dir, build_dir, subdir, mesonintrospect, in_builddir, check)
    self.returncode = pc.returncode
    self.methods.update({'returncode': self.returncode_method, 'stdout': self.stdout_method, 'stderr': self.stderr_method})