From be86199221046fa5527b93b8c7231c6c3af344d4 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Fri, 12 Mar 2021 19:53:29 +0200 Subject: Fix run_targets running scripts from different subdirs. --- mesonbuild/interpreter.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mesonbuild/interpreter.py') diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index f169d59..e563f36 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -4008,6 +4008,8 @@ This will become a hard error in the future.''' % kwargs['input'], location=self if isinstance(i, dependencies.ExternalProgram) and not i.found(): raise InterpreterException(f'Tried to use non-existing executable {i.name!r}') cleaned_args.append(i) + if isinstance(cleaned_args[0], str): + cleaned_args[0] = self.func_find_program(node, cleaned_args[0], {}) name = args[0] if not isinstance(name, str): raise InterpreterException('First argument must be a string.') -- cgit v1.1