stderr=subprocess.STDOUT).decode()
def accept_command(commands):
- """Search @commands and returns the first found command"""
+ """Search @commands and returns the first found absolute path."""
for command in commands:
- if shutil.which(command):
+ command = shutil.which(command)
+ if command:
return command
return None
subprocess.check_call(
[sys.executable, meson, "../"] + self.args + self.get_configs(), cwd=build_dir)
print("\nYou can now build GStreamer and its various subprojects running:\n"
- " $ {} -C {!r}".format(ninja, build_dir))
+ " $ ninja -C %s" % build_dir)
except subprocess.CalledProcessError:
return False