util.py
Go to the documentation of this file.
1 import os
2 import sys
3 import traceback
4 from package import Package
5 
6 
7 def get_packages(root_fn='.', create_objects=True):
8  packages = []
9  for root, dirs, files in os.walk(root_fn):
10  if '.git' in root:
11  continue
12  if 'package.xml' in files:
13  if create_objects:
14  try:
15  packages.append(Package(root))
16  except:
17  sys.stderr.write('ERROR: Trouble parsing package @ %s\n' % root)
18  sys.stderr.write(traceback.format_exc())
19  else:
20  packages.append(root)
21  return packages
def get_packages(root_fn='.', create_objects=True)
Definition: util.py:7


ros_introspection
Author(s):
autogenerated on Wed Jun 19 2019 19:56:52