

def run_postconf_scripts(self):
    env = {
        'MESON_SOURCE_ROOT': self.environment.get_source_dir(),
        'MESON_BUILD_ROOT': self.environment.get_build_dir(),
    }
    child_env = os.environ.copy()
    child_env.update(env)
    for s in self.build.postconf_scripts:
        cmd = (s['exe'].get_command() + s['args'])
        subprocess.check_call(cmd, env=child_env)

dataset/ETHPy150Open mesonbuild/meson/mesonbuild/backend/backends.py Backend.run_postconf_scripts/original