px4_param_def to QGC fix

This commit is contained in:
mswingtra
2015-08-28 11:18:52 +02:00
committed by Lorenz Meier
parent 17287ddd2c
commit 68e726ce37
2 changed files with 17 additions and 9 deletions
+8 -2
View File
@@ -13,10 +13,16 @@ class SourceScanner(object):
Scans provided path and passes all found contents to the parser using
parser.Parse method.
"""
extensions = tuple(parser.GetSupportedExtensions())
extensions1 = tuple([".h"])
extensions2 = tuple([".cpp", ".c"])
for dirname, dirnames, filenames in os.walk(srcdir):
for filename in filenames:
if filename.endswith(extensions):
if filename.endswith(extensions1):
path = os.path.join(dirname, filename)
if not self.ScanFile(path, parser):
return False
for filename in filenames:
if filename.endswith(extensions2):
path = os.path.join(dirname, filename)
if not self.ScanFile(path, parser):
return False