mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
param_parser: input validation bug fix
This commit is contained in:
parent
5917928bdc
commit
5c6b22dbd0
@ -122,10 +122,12 @@ for library in libraries:
|
||||
paths = library.Path.split(',')
|
||||
for path in paths:
|
||||
path = path.strip()
|
||||
#print "\n Processing file %s" % path
|
||||
f = open(os.path.normpath(os.path.join(apm_path + '/libraries/' + path)))
|
||||
p_text = f.read()
|
||||
f.close()
|
||||
print "\n Processing file %s" % path
|
||||
libraryfname = os.path.normpath(os.path.join(apm_path + '/libraries/' + path))
|
||||
if path and os.path.exists(libraryfname):
|
||||
f = open(libraryfname)
|
||||
p_text = f.read()
|
||||
f.close()
|
||||
|
||||
param_matches = prog_group_param.findall(p_text)
|
||||
print "Found %u documented parameters" % len(param_matches)
|
||||
|
Loading…
Reference in New Issue
Block a user