def package_tree(pkgroot):
 path = os.path.dirname(__file__)
 subdirs = [os.path.relpath(i[0], path).replace(os.path.sep, '.') for i in os.walk(os.path.join(path, pkgroot)) if ('__init__.py' in i[2])]
 return sorted(subdirs)

def package_tree ( pkgroot ) : path = os . path . dirname ( __file__ ) subdirs = [ os . path . relpath ( i [ 0 ] , path ) . replace ( os . path . sep , '.' ) for i in os . walk ( os . path . join ( path , pkgroot ) ) if ( '__init__.py' in i [ 2 ] ) ] return sorted ( subdirs )
get the submodule list .