From 385d1c1951e9e74247e683d36a5083630c52758e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 22 Apr 2017 13:45:40 +1000 Subject: [PATCH] waf: cope with spaces in directory name in mavgen --- Tools/ardupilotwaf/mavgen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/ardupilotwaf/mavgen.py b/Tools/ardupilotwaf/mavgen.py index d4f6dfbb7b..0cc369fc19 100644 --- a/Tools/ardupilotwaf/mavgen.py +++ b/Tools/ardupilotwaf/mavgen.py @@ -55,7 +55,7 @@ class mavgen(Task.Task): mavgen = self.env.get_flat('MAVGEN') out = self.env.get_flat('OUTPUT_DIR') 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())) if ret != 0: