aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-03-12 19:53:29 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2021-03-14 13:17:19 +0200
commitbe86199221046fa5527b93b8c7231c6c3af344d4 (patch)
tree0b085d78f800b5b70adb9a18e71b043e4129ff03 /mesonbuild
parent1f3bf0f1357a20d9975a2de54e0fd097fc52424f (diff)
downloadmeson-be86199221046fa5527b93b8c7231c6c3af344d4.zip
meson-be86199221046fa5527b93b8c7231c6c3af344d4.tar.gz
meson-be86199221046fa5527b93b8c7231c6c3af344d4.tar.bz2
Fix run_targets running scripts from different subdirs.
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/interpreter.py2
1 files changed, 2 insertions, 0 deletions
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.')