waf: cope with spaces in directory name in mavgen

This commit is contained in:
Andrew Tridgell 2017-04-22 13:45:40 +10:00
parent cacfc4cb2f
commit 385d1c1951

View File

@ -55,7 +55,7 @@ class mavgen(Task.Task):
mavgen = self.env.get_flat('MAVGEN') mavgen = self.env.get_flat('MAVGEN')
out = self.env.get_flat('OUTPUT_DIR') out = self.env.get_flat('OUTPUT_DIR')
src = self.env.get_flat('SRC') src = self.env.get_flat('SRC')
ret = self.exec_command('{} {} --lang=C --wire-protocol=2.0 --output {} {}'.format( ret = self.exec_command("{} '{}' --lang=C --wire-protocol=2.0 --output '{}' '{}'".format(
python, mavgen, out, self.inputs[0].abspath())) python, mavgen, out, self.inputs[0].abspath()))
if ret != 0: if ret != 0: