diff options
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/programs.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/programs.py b/mesonbuild/programs.py index ffd177f..af27801 100644 --- a/mesonbuild/programs.py +++ b/mesonbuild/programs.py @@ -295,6 +295,9 @@ class ExternalProgram(mesonlib.HoldableObject): commands = self._search_dir(name, search_dir) if commands: return commands + # If there is a directory component, do not look in PATH + if os.path.dirname(name) and not os.path.isabs(name): + return [None] # Do a standard search in PATH path = os.environ.get('PATH', None) if mesonlib.is_windows() and path: |