autotest: run mavproxy.py from $PATH

This commit is contained in:
Andrew Tridgell 2013-09-17 21:05:00 +10:00
parent 284492cfec
commit dcb60e190d
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ def start_MAVProxy_SIL(atype, aircraft=None, setup=False, master='tcp:127.0.0.1:
'''launch mavproxy connected to a SIL instance''' '''launch mavproxy connected to a SIL instance'''
import pexpect import pexpect
global close_list global close_list
MAVPROXY = os.getenv('MAVPROXY_CMD', reltopdir('../MAVProxy/mavproxy.py')) MAVPROXY = os.getenv('MAVPROXY_CMD', 'mavproxy.py')
cmd = MAVPROXY + ' --master=%s --out=127.0.0.1:14550' % master cmd = MAVPROXY + ' --master=%s --out=127.0.0.1:14550' % master
if setup: if setup:
cmd += ' --setup' cmd += ' --setup'