Skip to content

Commit 57ad83a

Browse files
committed
mavproxy.py: add option to not run startup scripts
for future use in ArduPilot's autotest
1 parent 6bd0450 commit 57ad83a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

MAVProxy/mavproxy.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1338,6 +1338,7 @@ def run_startup_scripts():
13381338
parser.add_option("--default-modules", default="log,signing,wp,rally,fence,ftp,param,relay,tuneopt,arm,mode,calibration,rc,auxopt,misc,cmdlong,battery,terrain,output,adsb,layout", help='default module list')
13391339
parser.add_option("--udp-timeout",dest="udp_timeout", default=0.0, type='float', help="Timeout for udp clients in seconds")
13401340
parser.add_option("--retries", type=int, help="number of times to retry connection", default=3)
1341+
parser.add_option("--no-startup-scripts", action='store_true', help="Do not run .mavinit.scr and other startup scripts")
13411342

13421343
(opts, args) = parser.parse_args()
13431344
if len(args) != 0:
@@ -1519,7 +1520,8 @@ def quit_handler(signum = None, frame = None):
15191520
elif opts.aircraft is not None:
15201521
mpstate.aircraft_dir = opts.aircraft
15211522

1522-
run_startup_scripts()
1523+
if not opts.no_startup_scripts:
1524+
run_startup_scripts()
15231525

15241526
if opts.cmd is not None:
15251527
for cstr in opts.cmd:

0 commit comments

Comments
 (0)