From 7e4188a53fdebda6a06b6ac3bd4bc4e51411702d Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Thu, 15 Sep 2022 08:46:15 -0400 Subject: devenv: Resolve executable in devenv's PATH Fixes: #10815 --- mesonbuild/mdevenv.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mesonbuild/mdevenv.py') diff --git a/mesonbuild/mdevenv.py b/mesonbuild/mdevenv.py index 67ea700..8a5b5ba 100644 --- a/mesonbuild/mdevenv.py +++ b/mesonbuild/mdevenv.py @@ -165,6 +165,10 @@ def run(options: argparse.Namespace) -> int: tmprc.flush() args.append("--rcfile") args.append(tmprc.name) + else: + # Try to resolve executable using devenv's PATH + abs_path = shutil.which(args[0], path=devenv.get('PATH', None)) + args[0] = abs_path or args[0] try: return subprocess.call(args, close_fds=False, -- cgit v1.1