From e2257a59df9d52016e4658fac5c7171883ffee20 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Wed, 4 Jun 2014 23:46:04 +0300 Subject: [PATCH] Always give full path for build target executables as someone may try to invoke them. --- build.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index 43d08f280..a6df26fb4 100644 --- a/build.py +++ b/build.py @@ -599,7 +599,10 @@ class CustomTarget: final_cmd.append(c.get_command()) elif isinstance(c, BuildTarget) or isinstance(c, CustomTarget): self.dependencies.append(c) - final_cmd.append(os.path.join(c.get_subdir(), c.get_filename())) + # GIR scanner will attempt to execute this binary but + # it assumes that it is in path, so always give it a full path. + totarget = os.path.join('.', c.get_subdir(), c.get_filename()) + final_cmd.append(totarget) elif isinstance(c, list): # Hackety hack, only supports one level of flattening. Should really # work to arbtrary depth.