diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2022-09-15 08:46:15 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2022-09-15 10:04:59 -0400 |
commit | 7e4188a53fdebda6a06b6ac3bd4bc4e51411702d (patch) | |
tree | 21cb344b9bab0595cb1de13fad203c881f2228e1 /mesonbuild/mdevenv.py | |
parent | d924586bee49552363fdcffa75fd8b9d724c8da1 (diff) | |
download | meson-7e4188a53fdebda6a06b6ac3bd4bc4e51411702d.zip meson-7e4188a53fdebda6a06b6ac3bd4bc4e51411702d.tar.gz meson-7e4188a53fdebda6a06b6ac3bd4bc4e51411702d.tar.bz2 |
devenv: Resolve executable in devenv's PATH
Fixes: #10815
Diffstat (limited to 'mesonbuild/mdevenv.py')
-rw-r--r-- | mesonbuild/mdevenv.py | 4 |
1 files changed, 4 insertions, 0 deletions
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, |