def find_subdirectories(package):
 try:
  subdirectories = next(os.walk(package_to_path(package)))[1]
 except StopIteration:
  subdirectories = []
 return subdirectories

def find_subdirectories ( package ) : try : subdirectories = next ( os . walk ( package_to_path ( package ) ) ) [ 1 ] except StopIteration : subdirectories = [ ] return subdirectories
get the subdirectories within a package this will include resources and submodules .