Tools: added locations.txt to ROMFS for SITL

This commit is contained in:
Andrew Tridgell 2020-12-31 06:56:04 +11:00
parent a4517032c5
commit eaf7e7354a

View File

@ -470,7 +470,10 @@ class sitl(Board):
for f in os.listdir('Tools/autotest/models'):
if fnmatch.fnmatch(f, "*.json") or fnmatch.fnmatch(f, "*.parm"):
env.ROMFS_FILES += [('models/'+f,'Tools/autotest/models/'+f)]
# include locations.txt so SITL on windows can lookup by name
env.ROMFS_FILES += [('locations.txt','Tools/autotest/locations.txt')]
# embed any scripts from ROMFS/scripts
if os.path.exists('ROMFS/scripts'):
for f in os.listdir('ROMFS/scripts'):