diff --git a/Tools/autotest/sim_vehicle.py b/Tools/autotest/sim_vehicle.py index 413b799456..a2ef9bc4e6 100755 --- a/Tools/autotest/sim_vehicle.py +++ b/Tools/autotest/sim_vehicle.py @@ -633,7 +633,11 @@ else: do_build(vehicledir, opts, frame_options) if opts.build_system == "waf": - vehicle_binary = os.path.join(vehicledir, "../build/sitl", frame_options["waf_target"]) + if opts.debug: + binary_basedir = "../build/sitl-debug" + else: + binary_basedir = "../build/sitl" + vehicle_binary = os.path.join(vehicledir, binary_basedir, frame_options["waf_target"]) else: vehicle_binary = os.path.join(vehicledir, opts.vehicle+".elf")