def get_package_directories():
 ls_tree_out = check_output('git', 'ls-tree', '-d', '--name-only', '--full-name', 'HEAD', PROJECT_ROOT)
 result = []
 for package in ls_tree_out.split('\n'):
  if (package not in IGNORED_DIRECTORIES):
   result.append(package)
 return result

def get_package_directories ( ) : ls_tree_out = check_output ( 'git' , 'ls-tree' , '-d' , '--name-only' , '--full-name' , 'HEAD' , PROJECT_ROOT ) result = [ ] for package in ls_tree_out . split ( '\n' ) : if ( package not in IGNORED_DIRECTORIES ) : result . append ( package ) return result
get a list of directories containing sub-packages .