From ed774a68c647eb00b8e531a8370161fb6696230b Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Mon, 18 Apr 2016 22:50:37 +0530 Subject: scripts/meson_exe: prepend extra_paths to PATH instead of appending This way locally-built DLLs and EXEs are preferred over system-wide ones --- mesonbuild/scripts/meson_exe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/scripts') diff --git a/mesonbuild/scripts/meson_exe.py b/mesonbuild/scripts/meson_exe.py index 2b91de8..f075fa0 100644 --- a/mesonbuild/scripts/meson_exe.py +++ b/mesonbuild/scripts/meson_exe.py @@ -53,7 +53,7 @@ def run_exe(exe): child_env = os.environ.copy() child_env.update(exe.env) if len(exe.extra_paths) > 0: - child_env['PATH'] = child_env['PATH'] + ';'.join([''] + exe.extra_paths) + child_env['PATH'] = ';'.join(exe.extra_paths + ['']) + child_env['PATH'] p = subprocess.Popen(cmd + exe.cmd_args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, -- cgit v1.1