6 from .package
import Package
11 for root, dirs, files
in sorted(os.walk(root_fn)):
14 if 'package.xml' in files:
17 packages.append(Package(root))
19 sys.stderr.write(
'ERROR: Trouble parsing package @ %s\n' % root)
20 sys.stderr.write(traceback.format_exc())
27 parent_path = os.path.abspath(os.path.join(package.root,
'..'))
29 sibling_packages = set()
30 for sub_package
in get_packages(parent_path, create_objects=
False):
31 pkg_name = os.path.split(sub_package)[1]
32 if pkg_name != package.name:
33 sibling_packages.add(pkg_name)
34 return sibling_packages
def get_sibling_packages(package)
def get_packages(root_fn='.', create_objects=True)