scripts/meson_exe: prepend extra_paths to PATH instead of appending

This way locally-built DLLs and EXEs are preferred over system-wide ones
pull/494/head
Nirbheek Chauhan 9 years ago
parent 86aa51232e
commit ed774a68c6
  1. 2
      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,

Loading…
Cancel
Save