def get_modules(package_name, module_names):
  """ List of module objects from the package, keeping the name order. """
  def get_module(name):
    return __import__(".".join([package_name, name]), fromlist=[package_name])
  return [get_module(name) for name in module_names]
def get_modules ( package_name , module_names ) : def get_module ( name ) : return __import__ ( "." . join ( [ package_name , name ] ) , fromlist = [ package_name ] ) return [ get_module ( name ) for name in module_names ]
List of module objects from the package, keeping the name order.