def get_stack_dir(stack, env=None):
 _init_rosstack(env=env)
 try:
  return _rosstack.get_path(stack)
 except rospkg.ResourceNotFound:
  raise InvalidROSStackException(stack)

def get_stack_dir ( stack , env = None ) : _init_rosstack ( env = env ) try : return _rosstack . get_path ( stack ) except rospkg . ResourceNotFound : raise InvalidROSStackException ( stack )
get the directory of a ros stack .