Always give full path for build target executables as someone may try to invoke them.

pull/15/head 0.17.0
Jussi Pakkanen 11 years ago
parent 63a7691040
commit e2257a59df
  1. 5
      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.

Loading…
Cancel
Save