From 9b7b37601610295ad136f3ff0ff1b6d6fd7f7ebe Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 14 Jul 2023 13:49:35 +1000 Subject: [PATCH] sim_vehicle.py: roughly fix auto-sysid functionality --- Tools/autotest/sim_vehicle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/autotest/sim_vehicle.py b/Tools/autotest/sim_vehicle.py index cc1aef43ef..21efe9b608 100755 --- a/Tools/autotest/sim_vehicle.py +++ b/Tools/autotest/sim_vehicle.py @@ -769,7 +769,7 @@ def start_vehicle(binary, opts, stuff, spawns=None): print("The parameter file (%s) does not exist" % (x,)) sys.exit(1) path = ",".join(paths) - if cmd_opts.count > 1: + if cmd_opts.count > 1 or opts.auto_sysid: # we are in a subdirectory when using -n path = os.path.join("..", path) progress("Using defaults from (%s)" % (path,))